Example usage for com.amazonaws.services.s3.model AmazonS3Exception setServiceName

List of usage examples for com.amazonaws.services.s3.model AmazonS3Exception setServiceName

Introduction

In this page you can find the example usage for com.amazonaws.services.s3.model AmazonS3Exception setServiceName.

Prototype

public void setServiceName(String serviceName) 

Source Link

Document

Sets the name of the service that sent this error response.

Usage

From source file:eu.openg.aws.s3.internal.S3ExceptionBuilder.java

License:Apache License

private static AmazonS3Exception buildException(String message, String errorCode, int statusCode,
        Map<String, String> additionalDetails) {
    AmazonS3Exception exception = newException(message, errorCode, statusCode, additionalDetails);
    exception.setServiceName(S3_SERVICE_DISPLAY_NAME);
    return exception;
}