Package ca.uhn.model.json.exception

Examples of ca.uhn.model.json.exception.InternalErrorException


    ErrorData error = gson.fromJson(response.get("error"), Error.ErrorData.class);

    if (null != error) {
      String serviceError = "Received error from service: " + error.message;
      if (error.code == Error.INTERNAL_ERROR) {
        throw new InternalErrorException(serviceError);
      } else if (error.code == Error.INVALID_PARAMS) {
        throw new InvalidParamsException(serviceError);
      } else if (error.code == Error.INVALID_REQUEST) {
        throw new InvalidRequestException(serviceError);
      } else if (error.code == Error.METHOD_NOT_FOUND) {
View Full Code Here

TOP

Related Classes of ca.uhn.model.json.exception.InternalErrorException

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.