Examples of causedException()


Examples of ch.ethz.iks.r_osgi.messages.RemoteCallResultMessage.causedException()

    invokeMsg.setArgs(args);

    try {
      // send the message and get a MethodResultMessage in return
      final RemoteCallResultMessage resultMsg = (RemoteCallResultMessage) sendAndWait(invokeMsg);
      if (resultMsg.causedException()) {
        throw resultMsg.getException();
      }
      final Object result = resultMsg.getResult();
      if (result instanceof InputStreamHandle) {
        return getInputStreamProxy((InputStreamHandle) result);
View Full Code Here

Examples of ch.ethz.iks.r_osgi.messages.RemoteCallResultMessage.causedException()

    synchronized (callbacks) {
      callbacks.put(xid, new AsyncCallback() {
        public void result(final RemoteOSGiMessage msg) {
          final RemoteCallResultMessage resultMsg = (RemoteCallResultMessage) msg;
          if (resultMsg.causedException()) {
            callback.remoteCallResult(false, resultMsg
                .getException());
          }
          final Object result = resultMsg.getResult();
          final Object res;
View Full Code Here

Examples of ch.ethz.iks.r_osgi.messages.StreamResultMessage.causedException()

  private StreamResultMessage doStreamOp(final StreamRequestMessage requestMsg)
      throws IOException {
    try {
      // send the message and get a StreamResultMessage in return
      final StreamResultMessage result = (StreamResultMessage) sendAndWait(requestMsg);
      if (result.causedException()) {
        throw result.getException();
      }
      return result;
    } catch (final RemoteOSGiException e) {
      throw new RemoteOSGiException("Invocation of operation " //$NON-NLS-1$
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.