Examples of JGBXException


Examples of org.ch3ck3r.jgbx.error.JGBXException

      .replace(PACKAGE_NAME_REQUEST, PACKAGE_NAME_RESPONSE);
    try {
      this.clazz = (Class<? extends Response>) Class.forName(classname);
    }
    catch (final ClassNotFoundException e) {
      throw new JGBXException("Cannot find the given response class: " + classname, e);
    }
  }
View Full Code Here

Examples of org.ch3ck3r.jgbx.error.JGBXException

    this.receiverThread.exit();
    this.isConnected = false;
    this.requestQueue.clear();
   
    for (final JGBXFuture<?> futureResponse : this.responseQueue.values()) {
      futureResponse.fail(new JGBXException("Cancelled because JGBXConnector disconnected."));
    }
    this.responseQueue.clear();
   
    try {
      this.socket.close();
View Full Code Here

Examples of org.ch3ck3r.jgbx.error.JGBXException

    final Future<T> response = this.<T> asyncQuery(request);
    try {
      return response.get();
    }
    catch (InterruptedException | ExecutionException e) {
      throw new JGBXException(e);
    }
  }
View Full Code Here

Examples of org.ch3ck3r.jgbx.error.JGBXException

        this.callbacksEnabled = request.<Boolean> getParameter(0);
      }
    }
    catch (final InterruptedException e) {
      this.responseQueue.remove(this.nextMessageHandle);
      throw new JGBXException(e);
    }
  }
View Full Code Here

Examples of org.ch3ck3r.jgbx.error.JGBXException

        @SuppressWarnings("unchecked")
        final Map<String, Object> map = (Map<String, Object>) this.handler.getParameters().get(0);
        throw new JGBXFault((Integer) map.get("faultCode"), (String) map.get("faultString"));
      }
      else {
        throw new JGBXException("failed to parse a " + this.handler.getMessageType() + " as a response.");
      }
    }
    catch (IOException | SAXException | InstantiationException | IllegalAccessException e) {
      throw new JGBXException("Failed to parse the response " + xml, e);
    }
  }
View Full Code Here

Examples of org.ch3ck3r.jgbx.error.JGBXException

        @SuppressWarnings("unchecked")
        final Map<String, Object> map = (Map<String, Object>) this.handler.getParameters().get(0);
        throw new JGBXFault((Integer) map.get("faultCode"), (String) map.get("faultString"));
      }
      else {
        throw new JGBXException("failed to parse a " + this.handler.getMessageType() + " as a callback.");
      }
    }
    catch (IOException | SAXException e) {
      throw new JGBXException("Failed to parse the response " + xml, e);
    }
  }
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.