Package org.erlide.runtime.rpc

Examples of org.erlide.runtime.rpc.RpcException


        final OtpErlangObject res = backend.call(ERLIDE_BUILDER, "source_clash", "ls",
                (Object) dirList);
        if (res instanceof OtpErlangList) {
            return (OtpErlangList) res;
        }
        throw new RpcException("bad result from erlide_builder:source_clash: " + res);
    }
View Full Code Here


            final OtpMbox mbox = localNode.createMbox();
            args1[0] = mbox.self();
            new RpcResultReceiver(mbox, cb);
            rpcCast(localNode, nodeName, false, gleader, m, f, signature, args1);
        } catch (final SignatureException e) {
            throw new RpcException(e);
        }
    }
View Full Code Here

            throws RpcException {
        try {
            return sendRpcCall(localNode, nodeName, false, gleader, module, fun,
                    signature, args0);
        } catch (final SignatureException e) {
            throw new RpcException(e);
        }
    }
View Full Code Here

            result1 = future.checkedGet(timeout, TimeUnit.MILLISECONDS);
            if (CHECK_RPC) {
                ErlLogger.debug("RPC result:: " + result1);
            }
            if (isBadRpc(result1)) {
                throw new RpcException(result1.toString());
            }
            result = result1;
        } catch (final SignatureException e) {
            throw new RpcException(e);
        } catch (final TimeoutException e) {
            throw new RpcTimeoutException(e.getMessage());
        }
        return result;
    }
View Full Code Here

            if (res == null) {
                final String msg = env != null ? env : "??";
                throw new RpcTimeoutException(msg);
            }
            if (!(res instanceof OtpErlangTuple)) {
                throw new RpcException(res.toString());
            }
            final OtpErlangTuple t = (OtpErlangTuple) res;
            if (t.arity() != 2) {
                throw new RpcException(res.toString());
            }
            res = t.elementAt(1);

        } catch (final OtpErlangExit e) {
            throw new RpcException(e);
        } catch (final OtpErlangDecodeException e) {
            throw new RpcException(e);
        }
        return res;
    }
View Full Code Here

TOP

Related Classes of org.erlide.runtime.rpc.RpcException

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.