Package org.apache.tuscany.sca.binding.erlang.impl.exceptions

Examples of org.apache.tuscany.sca.binding.erlang.impl.exceptions.ErlangException


            .getOutputType().getPhysical(), jmethod
            .getAnnotations()));
      }
    } catch (InterruptedException e) {
      // TODO: externalize message?
      ErlangException ee = new ErlangException(
          "Timeout while receiving message reply", e);
      msg.setBody(null);
      reportProblem(msg, ee);
    } catch (Exception e) {
      reportProblem(msg, e);
View Full Code Here


      }
      OtpErlangObject result = ((OtpErlangTuple) rpcResponse)
          .elementAt(1);
      if (MessageHelper.isfunctionUndefMessage(result)) {
        // TODO: externalize message?
        Exception e = new ErlangException("No '" + binding.getModule()
            + ":" + msg.getOperation().getName()
            + "' operation defined on remote '" + binding.getNode()
            + "' node.");
        reportProblem(msg, e);
        msg.setBody(null);
      } else if (msg.getOperation().getOutputType() != null) {
        jmethod.getAnnotations();
        msg.setBody(TypeHelpersProxy.toJava(result, msg.getOperation()
            .getOutputType().getPhysical(), jmethod
            .getAnnotations()));
      }
    } catch (OtpAuthException e) {
      // TODO: externalize message?
      ErlangException ee = new ErlangException(
          "Problem while authenticating client - check your cookie",
          e);
      msg.setBody(null);
      reportProblem(msg, ee);
    } catch (InterruptedException e) {
      // TODO: externalize message?
      ErlangException ee = new ErlangException(
          "Timeout while receiving RPC reply", e);
      msg.setBody(null);
      reportProblem(msg, ee);
    } catch (Exception e) {
      reportProblem(msg, e);
View Full Code Here

    this.name = name;
    self = new OtpSelf(name);
    boolean registered = self.publishPort();
    if (!registered) {
      // TODO: externalize message?
      throw new ErlangException(
          "Problem with publishing service under epmd server.");
    }
    if (binding.hasCookie()) {
      self.setCookie(binding.getCookie());
    }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.binding.erlang.impl.exceptions.ErlangException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.