Package land.oras.exception
Class OrasException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
land.oras.exception.OrasException
- All Implemented Interfaces:
Serializable
Exception for ORAS
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOrasException
(String message) ConstructorOrasException
(String message, Throwable cause) ConstructorOrasException
(OrasHttpClient.ResponseWrapper<String> response) New exception with a message and a response -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OrasException
Constructor- Parameters:
message
- The message
-
OrasException
New exception with a message and a response- Parameters:
response
- The response
-
OrasException
Constructor- Parameters:
message
- The messagecause
- The cause
-
-
Method Details
-
getError
Get the error- Returns:
- The error
-
getStatusCode
Get the status code- Returns:
- The status code
-