Class OS3Exception
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.hadoop.ozone.s3.exception.OS3Exception
- All Implemented Interfaces:
Serializable
This class represents exceptions raised from Ozone S3 service.
Ref:https://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOS3Exception(String codeVal, String messageVal, int httpCode) Create an object OS3Exception.OS3Exception(String codeVal, String messageVal, String requestIdVal, String resourceVal) Create an object OS3Exception. -
Method Summary
Modifier and TypeMethodDescriptiongetCode()intvoidvoidsetErrorMessage(String errorMessage) voidsetHttpCode(int httpCode) voidsetRequestId(String requestId) voidsetResource(String resource) toXml()withMessage(String message) Create a copy with specific message.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OS3Exception
public OS3Exception() -
OS3Exception
Create an object OS3Exception.- Parameters:
codeVal-messageVal-requestIdVal-resourceVal-
-
OS3Exception
Create an object OS3Exception.- Parameters:
codeVal-messageVal-httpCode-
-
-
Method Details
-
getCode
-
setCode
-
getErrorMessage
-
setErrorMessage
-
getRequestId
-
setRequestId
-
getResource
-
setResource
-
getHttpCode
public int getHttpCode() -
setHttpCode
public void setHttpCode(int httpCode) -
toXml
-
withMessage
Create a copy with specific message.
-