Examples of InternalServerException


Examples of com.amazonaws.services.elasticmapreduce.model.InternalServerException

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

        InternalServerException e = (InternalServerException)super.unmarshall(json);

        return e;
    }
View Full Code Here

Examples of com.amazonaws.services.elasticmapreduce.model.InternalServerException

        }
    }

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

        return e;
    }
View Full Code Here

Examples of com.amazonaws.services.elasticmapreduce.model.InternalServerException

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

        InternalServerException e = (InternalServerException)super.unmarshall(json);

        return e;
    }
View Full Code Here

Examples of com.bazaarvoice.auth.hmac.server.exception.InternalServerException

        } catch (IllegalArgumentException e) {
            LOG.info("Error decoding credentials: {}", e.getMessage());
            throw new NotAuthorizedException();
        } catch (Exception e) {
            LOG.warn("Error while authenticating credentials", e);
            throw new InternalServerException();
        }

        throw new NotAuthorizedException();
    }
View Full Code Here

Examples of com.bazaarvoice.auth.hmac.server.exception.InternalServerException

            }
        } catch (IllegalArgumentException e) {
            return null;
        } catch (Exception e) {
            LOG.warn("Error while authenticating credentials", e);
            throw new InternalServerException();
        }

        throw new NotAuthorizedException();
    }
View Full Code Here

Examples of com.google.code.stackexchange.client.exception.InternalServerException

   */
  protected StackExchangeApiException createStackOverflowApiClientException(Error error) {
    switch (error.getErrorCode()) {
   
    case ErrorCodes.INTERNAL_SERVER_ERROR:
      return new InternalServerException(error.getMessage(), new Date());
 
    case ErrorCodes.INVALID_APPLICATION_KEY:
      return new InvalidApplicationKeyException(error.getMessage(), new Date());
     
    case ErrorCodes.INVALID_ORDER:
View Full Code Here

Examples of com.sequenceiq.cloudbreak.controller.InternalServerException

                                    Boolean delete = false;
                                    try {
                                        delete = instanceResourceBuilders.get(cloudPlatform).get(index).delete(resource, dCO);
                                    } catch (HttpResponseException ex) {
                                        LOGGER.error(String.format("Error occurred on stack under the instance remove"), ex);
                                        throw new InternalServerException(
                                                String.format("Error occurred while removing instance '%s' on stack. Message: '%s'",
                                                instanceId, ex.getResponse().toString()), ex);
                                    } catch (Exception ex) {
                                        throw new InternalServerException(
                                                String.format("Error occurred while removing instance '%s' on stack. Message: '%s'",
                                                instanceId, ex.getMessage()), ex);
                                    }
                                    return delete;
                                }
View Full Code Here

Examples of com.sequenceiq.cloudbreak.controller.InternalServerException

            final FileOutputStream os = new FileOutputStream(getUserCerFileName(azureCredential, emailAsFolder));
            os.write(Base64.encodeBase64(certificate.getEncoded(), true));
            os.close();
        } catch (Exception e) {
            LOGGER.error(e.getMessage(), e);
            throw new InternalServerException("There was a problem with the certificate generation", e);
        }
    }
View Full Code Here

Examples of com.sequenceiq.cloudbreak.controller.InternalServerException

                bw.write(sshKey);
                bw.close();
                keyGeneratorService.generateSshKey(getSshFolderForTemplate(emailAsFolder, azureCredential.getId()) + "/" + emailAsFolder);
            } catch (InterruptedException e) {
                LOGGER.error("An error occured under the ssh generation for {} template. The error was: {} {}", azureCredential.getId(), e.getMessage(), e);
                throw new InternalServerException(e.getMessage());
            }
        } catch (IOException ex) {
            LOGGER.error("An error occured under the ssh folder generation: {} {}", ex.getMessage(), ex);
            throw new InternalServerException("There was a problem with the ssh key generation", ex);
        }
    }
View Full Code Here

Examples of com.sequenceiq.cloudbreak.controller.InternalServerException

    }

    protected void httpResponseExceptionHandler(HttpResponseException ex, String resourceName, String user, Stack stack) {
        MDCBuilder.buildMdcContext(stack);
        if (ex.getStatusCode() != NOT_FOUND) {
            throw new InternalServerException(ex.getMessage());
        } else {
            LOGGER.error(String.format("Azure resource not found with %s name for %s user.", resourceName, user));
        }
    }
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.