Package org.springframework.erlang

Examples of org.springframework.erlang.ErlangBadRpcException


      {
        OtpErlangAtom responseAtom = (OtpErlangAtom)msg.elementAt(0);
        //TODO consider error handler strategy.
        if (responseAtom.atomValue().equals("badrpc")) {
          if (msg.elementAt(1) instanceof OtpErlangTuple) {
            throw new ErlangBadRpcException( (OtpErlangTuple)msg.elementAt(1));
          } else {
            throw new ErlangBadRpcException( msg.elementAt(1).toString());
          }
        } else if (responseAtom.atomValue().equals("error")) {
          if (msg.elementAt(1) instanceof OtpErlangTuple) {
            throw new ErlangErrorRpcException( (OtpErlangTuple)msg.elementAt(1));
          } else {
View Full Code Here

TOP

Related Classes of org.springframework.erlang.ErlangBadRpcException

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.