Serializable
, ErrorCodeAccessor
, Trap
LockedException
, MarshalException
, UnmarshalException
, VetoException
public abstract class AbstractException extends Exception implements Trap
ErrorCodeAccessor.ErrorCodeBuilder<B extends ErrorCodeAccessor.ErrorCodeBuilder<B>>, ErrorCodeAccessor.ErrorCodeMutator, ErrorCodeAccessor.ErrorCodeProperty
Constructor | Description |
---|---|
AbstractException(String message) |
Instantiates a new abstract exception.
|
AbstractException(String aMessage,
String aErrorCode) |
|
AbstractException(String message,
Throwable cause) |
Instantiates a new abstract exception.
|
AbstractException(String aMessage,
Throwable aCause,
String aErrorCode) |
|
AbstractException(Throwable cause) |
Instantiates a new abstract exception.
|
AbstractException(Throwable aCause,
String aErrorCode) |
/**
|
Modifier and Type | Method | Description |
---|---|---|
String |
getErrorCode() |
Provides the according exception code.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AbstractException(String message, Throwable cause)
message
- the messagecause
- the causepublic AbstractException(String message)
message
- the messagepublic AbstractException(Throwable cause)
cause
- the causepublic AbstractException(String aMessage, Throwable aCause, String aErrorCode)
aMessage
- - the detail message (which is saved for later retrieval
by the Throwable.getMessage() method).aCause
- - the cause (which is saved for later retrieval by the
Throwable.getCause() method). (A null value is permitted, and
indicates that the cause is nonexistent or unknown.)aErrorCode
- The exception code to be assigned to the exception. An
exception code can be provided when creating an exception and it
can be used by the business logic to retrieve a language depended
exception message (multi-language support) from a language pack
instead of just providing the single language message as being
stored by the default exceptions.public AbstractException(String aMessage, String aErrorCode)
aMessage
- - the detail message (which is saved for later retrieval
by the Throwable.getMessage() method).aErrorCode
- The exception code to be assigned to the exception. An
exception code can be provided when creating an exception and it
can be used by the business logic to retrieve a language depended
exception message (multi-language support) from a language pack
instead of just providing the single language message as being
stored by the default exceptions.public AbstractException(Throwable aCause, String aErrorCode)
aCause
- - the cause (which is saved for later retrieval by the
Throwable.getCause() method). (A null value is permitted, and
indicates that the cause is nonexistent or unknown.)aErrorCode
- The exception code to be assigned to the exception. An
exception code can be provided when creating an exception and it
can be used by the business logic to retrieve a language depended
exception message (multi-language support) from a language pack
instead of just providing the single language message as being
stored by the default exceptions.public String getErrorCode()
getErrorCode
in interface ErrorCodeAccessor
Copyright © 2018. All rights reserved.