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 interface
AwsErrorDetails.Builder
protected static class
AwsErrorDetails.BuilderImpl
-
Constructor Summary
Constructors Modifier Constructor Description protected
AwsErrorDetails(AwsErrorDetails.Builder b)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AwsErrorDetails.Builder
builder()
boolean
equals(Object o)
String
errorCode()
Returns the error code associated with the response.String
errorMessage()
int
hashCode()
SdkBytes
rawResponse()
Returns the response payload as bytes.SdkHttpResponse
sdkHttpResponse()
Returns a map of HTTP headers associated with the error response.static Class<? extends AwsErrorDetails.Builder>
serializableBuilderClass()
String
serviceName()
Returns the name of the service as defined in the static constant SERVICE_NAME variable of each service's interface.AwsErrorDetails.Builder
toBuilder()
Create aAwsErrorDetails.Builder
initialized with the properties of thisAwsErrorDetails
.String
toString()
-
-
-
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.Builder
instance to construct a newAwsErrorDetails
.
-
toBuilder
public AwsErrorDetails.Builder toBuilder()
Create aAwsErrorDetails.Builder
initialized with the properties of thisAwsErrorDetails
.- Returns:
- A new builder initialized with this config's properties.
-
serializableBuilderClass
public static Class<? extends AwsErrorDetails.Builder> serializableBuilderClass()
-
-