Class AwsErrorDetails
- java.lang.Object
-
- software.amazon.awssdk.awscore.exception.AwsErrorDetails
-
- All Implemented Interfaces:
Serializable
public class AwsErrorDetails extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAwsErrorDetails.Builderprotected static classAwsErrorDetails.BuilderImpl
-
Constructor Summary
Constructors Modifier Constructor Description protectedAwsErrorDetails(AwsErrorDetails.Builder b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AwsErrorDetails.Builderbuilder()booleanequals(Object o)StringerrorCode()Returns the error code associated with the response.StringerrorMessage()inthashCode()SdkBytesrawResponse()Returns the response payload as bytes.SdkHttpResponsesdkHttpResponse()Returns a map of HTTP headers associated with the error response.static Class<? extends AwsErrorDetails.Builder>serializableBuilderClass()StringserviceName()Returns the name of the service as defined in the static constant SERVICE_NAME variable of each service's interface.AwsErrorDetails.BuildertoBuilder()Create aAwsErrorDetails.Builderinitialized with the properties of thisAwsErrorDetails.StringtoString()
-
-
-
Constructor Detail
-
AwsErrorDetails
protected AwsErrorDetails(AwsErrorDetails.Builder b)
-
-
Method Detail
-
serviceName
public String serviceName()
Returns the name of the service as defined in the static constant SERVICE_NAME variable of each service's interface.- Returns:
- The name of the service that sent this error response.
-
errorMessage
public String errorMessage()
- Returns:
- the human-readable error message provided by the service.
-
errorCode
public String errorCode()
Returns the error code associated with the response.
-
rawResponse
public SdkBytes rawResponse()
Returns the response payload as bytes.
-
sdkHttpResponse
public SdkHttpResponse sdkHttpResponse()
Returns a map of HTTP headers associated with the error response.
-
builder
public static AwsErrorDetails.Builder builder()
- Returns:
AwsErrorDetails.Builderinstance to construct a newAwsErrorDetails.
-
toBuilder
public AwsErrorDetails.Builder toBuilder()
Create aAwsErrorDetails.Builderinitialized with the properties of thisAwsErrorDetails.- Returns:
- A new builder initialized with this config's properties.
-
serializableBuilderClass
public static Class<? extends AwsErrorDetails.Builder> serializableBuilderClass()
-
-