Java Code Examples for com.amazonaws.AmazonServiceException#setServiceName()

The following examples show how to use com.amazonaws.AmazonServiceException#setServiceName() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractDynamoDBTest.java    From localization_nifi with Apache License 2.0 5 votes vote down vote up
protected AmazonServiceException getSampleAwsServiceException() {
    final AmazonServiceException testServiceException = new AmazonServiceException("Test AWS Service Exception");
    testServiceException.setErrorCode("8673509");
    testServiceException.setErrorMessage("This request cannot be serviced right now.");
    testServiceException.setErrorType(ErrorType.Service);
    testServiceException.setServiceName("Dynamo DB");
    testServiceException.setRequestId("TestRequestId-1234567890");

    return testServiceException;
}
 
Example 2
Source File: AbstractDynamoDBTest.java    From nifi with Apache License 2.0 5 votes vote down vote up
protected AmazonServiceException getSampleAwsServiceException() {
    final AmazonServiceException testServiceException = new AmazonServiceException("Test AWS Service Exception");
    testServiceException.setErrorCode("8673509");
    testServiceException.setErrorMessage("This request cannot be serviced right now.");
    testServiceException.setErrorType(ErrorType.Service);
    testServiceException.setServiceName("Dynamo DB");
    testServiceException.setRequestId("TestRequestId-1234567890");

    return testServiceException;
}