java.lang.Object
java.lang.Throwable
java.lang.Exception
tech.deplant.java4ever.binding.EverSdkException
- All Implemented Interfaces:
Serializable
Exception thrown when attempting to use EVER-SDK API methods
This exception has
errorResponse()
field that holds error response from EVER-SDK.
All additional causes can be inspected using the Throwable.getCause()
method.- Since:
- 1.5
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
static final record
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
EverSdkException
(EverSdkException.ErrorResult errorResponse) Constructs anExecutionException
with no detail message.protected
EverSdkException
(EverSdkException.ErrorResult errorResponse, String message) Constructs anExecutionException
with the specified detail message.EverSdkException
(EverSdkException.ErrorResult errorResponse, String message, Throwable cause) Constructs anExecutionException
with the specified detail message and cause.EverSdkException
(EverSdkException.ErrorResult errorResponse, Throwable cause) Constructs anExecutionException
with the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EverSdkException
Constructs anExecutionException
with no detail message. The cause is not initialized, and may subsequently be initialized by a call toinitCause
. -
EverSdkException
Constructs anExecutionException
with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toinitCause
.- Parameters:
message
- the detail message
-
EverSdkException
public EverSdkException(EverSdkException.ErrorResult errorResponse, String message, Throwable cause) Constructs anExecutionException
with the specified detail message and cause.- Parameters:
message
- the detail messagecause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method)
-
EverSdkException
Constructs anExecutionException
with the specified cause. The detail message is set to(cause == null ? null : cause.toString())
(which typically contains the class and detail message ofcause
).- Parameters:
cause
- the cause (which is saved for later retrieval by theThrowable.getCause()
method)
-
-
Method Details
-
errorResponse
-