Examples of InternalErrorException


Examples of ca.uhn.fhir.rest.server.exceptions.InternalErrorException

    Object response;
    try {
      response = getMethod().invoke(theResourceProvider, params);
    } catch (Exception e) {
      throw new InternalErrorException("Failed to call access method", e);
    }

    return toResourceList(response);
  }
View Full Code Here

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

Examples of com.amazonaws.services.cloudtrail.model.InternalErrorException

        // marshaller understands.
        String errorCode = parseErrorCode(json);
        if (errorCode == null || !errorCode.equals("InternalErrorException"))
            return null;

        InternalErrorException e = (InternalErrorException)super.unmarshall(json);
       
       
        return e;
    }
View Full Code Here

Examples of com.amazonaws.services.cognitoidentity.model.InternalErrorException

        }
    }

    @Override
    public AmazonServiceException unmarshall(JSONObject json) throws Exception {
        InternalErrorException e = (InternalErrorException)super.unmarshall(json);
        e.setErrorCode("InternalErrorException");

        return e;
    }
View Full Code Here

Examples of com.amazonaws.services.sns.model.InternalErrorException

        // marshaller understands.
        String errorCode = parseErrorCode(node);
        if (errorCode == null || !errorCode.equals("InternalError"))
            return null;

        InternalErrorException e = (InternalErrorException)super.unmarshall(node);
       
        return e;
    }
View Full Code Here

Examples of com.baidu.rpc.exception.InternalErrorException

      resBytes = readResponse(connection);
      JsonElement resJson = deserialize(resBytes);
//      return parseResult(id, resJson, method);
      return resJson.toString();
    } catch (IOException e) {
      throw new InternalErrorException(e);
    }
  }
View Full Code Here

Examples of com.belladati.sdk.exception.server.InternalErrorException

      case 403:
        throw buildException(statusCode, content, tokenHolder.hasToken());
      case 404:
        throw new NotFoundException(request.getRequestLine().getUri());
      case 500:
        throw new InternalErrorException();
      default:
        throw new UnexpectedResponseException(statusCode, new String(content));
      }
    } catch (OAuthException e) {
      throw new InternalConfigurationException("Failed to create OAuth signature", e);
View Full Code Here

Examples of com.cloud.bridge.service.exception.InternalErrorException

        try {
            md5 = MessageDigest.getInstance("MD5");
        } catch (NoSuchAlgorithmException e) {
            s_logger.error("Unexpected exception " + e.getMessage(), e);
            throw new InternalErrorException("Unable to get MD5 MessageDigest", e);
        }

        File spoolFile = null;
        try {
            spoolFile = File.createTempFile("castor", null);
        } catch (IOException e) {
            s_logger.error("Unexpected exception creating temporary CAStor spool file: " + e.getMessage(), e);
            throw new InternalErrorException("Unable to create temporary CAStor spool file", e);
        }
        try {
            String retVal;
            int streamLen = 0;
            try {
View Full Code Here

Examples of com.cloud.bridge.service.exception.InternalErrorException

   
    try {
      md5 = MessageDigest.getInstance("MD5");
    } catch (NoSuchAlgorithmException e) {
      logger.error("Unexpected exception " + e.getMessage(), e);
      throw new InternalErrorException("Unable to get MD5 MessageDigest", e);
    }
   
    File file = new File(getBucketFolderDir(mountedRoot, bucket) + File.separatorChar + fileName);
    try {
      // -> when versioning is off we need to rewrite the file contents
View Full Code Here

Examples of com.cloud.bridge.service.exception.InternalErrorException

   
    try {
      md5 = MessageDigest.getInstance("MD5");
    } catch (NoSuchAlgorithmException e) {
      logger.error("Unexpected exception " + e.getMessage(), e);
      throw new InternalErrorException("Unable to get MD5 MessageDigest", e);
    }
   
    File file = new File(getBucketFolderDir(mountedRoot, destBucket) + File.separatorChar + fileName);
    try {
      // -> when versioning is off we need to rewrite the file contents
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.