Class AwsErrorDetails

java.lang.Object
software.amazon.awssdk.awscore.exception.AwsErrorDetails
All Implemented Interfaces:
Serializable

public class AwsErrorDetails extends Object implements Serializable
See Also:
  • Method Details

    • 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 new AwsErrorDetails.
    • toBuilder

      public AwsErrorDetails.Builder toBuilder()
      Create a AwsErrorDetails.Builder initialized with the properties of this AwsErrorDetails.
      Returns:
      A new builder initialized with this config's properties.
    • serializableBuilderClass

      public static Class<? extends AwsErrorDetails.Builder> serializableBuilderClass()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object