Class ApplicationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
africa.absa.inception.core.exception.RichRuntimeException
africa.absa.inception.application.ApplicationException
- All Implemented Interfaces:
Serializable
The ApplicationException exception is thrown to indicate an application error condition.
- Author:
- Marcus Portmann
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new ApplicationException with null as its message.ApplicationException(String message) Constructs a new ApplicationException with the specified message.ApplicationException(String code, String message) Constructs a new ApplicationException with the specified code and message.ApplicationException(String code, String message, Throwable cause) Constructs a new ApplicationException with the specified code, message and cause.ApplicationException(String message, Throwable cause) Constructs a new ApplicationException with the specified message and cause.ApplicationException(Throwable cause) Constructs a new ApplicationException with the specified cause and a message of (cause==null ? null : cause.toString()) (which typically contains the class and message of cause). -
Method Summary
Methods inherited from class africa.absa.inception.core.exception.RichRuntimeException
getCode, getWhen, getWhenAsStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ApplicationException
public ApplicationException()Constructs a new ApplicationException with null as its message. -
ApplicationException
Constructs a new ApplicationException with the specified message.- Parameters:
message- the message saved for later retrieval by the getMessage() method
-
ApplicationException
Constructs a new ApplicationException with the specified cause and a message of (cause==null ? null : cause.toString()) (which typically contains the class and message of cause).- Parameters:
cause- The cause saved for later retrieval by the getCause() method. (A null value is permitted if the cause is nonexistent or unknown)
-
ApplicationException
Constructs a new ApplicationException with the specified code and message.- Parameters:
code- the error code for the errormessage- the message saved for later retrieval by the getMessage() method
-
ApplicationException
Constructs a new ApplicationException with the specified message and cause.- Parameters:
message- the message saved for later retrieval by the getMessage() methodcause- The cause saved for later retrieval by the getCause() method. (A null value is permitted if the cause is nonexistent or unknown)
-
ApplicationException
Constructs a new ApplicationException with the specified code, message and cause.- Parameters:
code- the error code for the errormessage- the message saved for later retrieval by the getMessage() methodcause- The cause saved for later retrieval by the getCause() method. (A null value is permitted if the cause is nonexistent or unknown)
-