Class InternalException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.getelements.elements.sdk.model.exception.BaseException
dev.getelements.elements.sdk.model.exception.InternalException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ApplicationCodeNotFoundException,CryptoException,MapperException,NotificationConfigurationException,UnavailableException,UnhealthyException
Thrown when an internal server error occurs.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance.InternalException(String message) Creates a new instance with the given message.InternalException(String message, Throwable cause) Creates a new instance with the given message and cause.InternalException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Creates a new instance.InternalException(Throwable cause) Creates a new instance with the given cause. -
Method Summary
Methods inherited from class dev.getelements.elements.sdk.model.exception.BaseException
forceFillInStackTraceMethods inherited from class java.lang.Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InternalException
public InternalException()Creates a new instance. -
InternalException
Creates a new instance with the given message.- Parameters:
message- the detail message
-
InternalException
Creates a new instance with the given message and cause.- Parameters:
message- the detail messagecause- the cause
-
InternalException
Creates a new instance with the given cause.- Parameters:
cause- the cause
-
InternalException
public InternalException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Creates a new instance.- Parameters:
message- the detail messagecause- the causeenableSuppression- whether suppression is enabledwritableStackTrace- whether the stack trace is writable
-
-
Method Details
-
getCode
Description copied from class:BaseExceptionGets the error code.- Specified by:
getCodein classBaseException- Returns:
- the
ErrorCode
-
fillInStackTrace
- Overrides:
fillInStackTracein classThrowable
-