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 recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionEverSdkException(EverSdkException.ErrorResult errorResponse) Constructs anExecutionExceptionwith no detail message.EverSdkException(EverSdkException.ErrorResult errorResponse, String message) Constructs anExecutionExceptionwith the specified detail message.EverSdkException(EverSdkException.ErrorResult errorResponse, String message, Throwable cause) Constructs anExecutionExceptionwith the specified detail message and cause.EverSdkException(EverSdkException.ErrorResult errorResponse, Throwable cause) Constructs anExecutionExceptionwith the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
EverSdkException
Constructs anExecutionExceptionwith no detail message. The cause is not initialized, and may subsequently be initialized by a call toinitCause. -
EverSdkException
Constructs anExecutionExceptionwith 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 anExecutionExceptionwith 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 anExecutionExceptionwith 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
-
toString
-