Package software.amazon.awssdk.crt.s3
Class CrtS3RuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- software.amazon.awssdk.crt.CrtRuntimeException
-
- software.amazon.awssdk.crt.s3.CrtS3RuntimeException
-
- All Implemented Interfaces:
Serializable
public class CrtS3RuntimeException extends CrtRuntimeException
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class software.amazon.awssdk.crt.CrtRuntimeException
errorCode, errorName
-
-
Constructor Summary
Constructors Constructor Description CrtS3RuntimeException(int errorCode, int responseStatus, byte[] errorPayload)
CrtS3RuntimeException(int errorCode, int responseStatus, String errorPayload)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAwsErrorCode()
Returns the aws error code from S3 response.String
getAwsErrorMessage()
Returns the error message from S3 response.int
getStatusCode()
Returns the status code in S3 response.-
Methods inherited from class software.amazon.awssdk.crt.CrtRuntimeException
toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
CrtS3RuntimeException
public CrtS3RuntimeException(int errorCode, int responseStatus, String errorPayload)
-
CrtS3RuntimeException
public CrtS3RuntimeException(int errorCode, int responseStatus, byte[] errorPayload)
-
-
Method Detail
-
getAwsErrorCode
public String getAwsErrorCode()
Returns the aws error code from S3 response. TheCode
element in xml response.- Returns:
- errorCode, if no
Code
element in the response, empty string will be returned
-
getAwsErrorMessage
public String getAwsErrorMessage()
Returns the error message from S3 response. The detail amongMessage
element in xml response.- Returns:
- error message, if no
Message
element in the response, empty string will be returned
-
getStatusCode
public int getStatusCode()
Returns the status code in S3 response.- Returns:
- status code in int
-
-