Serializable
, ErrorCodeAccessor
, Trap
BugException
, IntegrityException
, LockedException.LockedRuntimeException
, VerifyRuntimeException
, VetoException.VetoRuntimeException
public abstract class AbstractRuntimeException extends RuntimeException implements Trap
ErrorCodeAccessor.ErrorCodeBuilder<B extends ErrorCodeAccessor.ErrorCodeBuilder<B>>, ErrorCodeAccessor.ErrorCodeMutator, ErrorCodeAccessor.ErrorCodeProperty
Constructor | Description |
---|---|
AbstractRuntimeException(String message) |
Instantiates a new abstract runtime exception.
|
AbstractRuntimeException(String aMessage,
String aErrorCode) |
|
AbstractRuntimeException(String message,
Throwable cause) |
Instantiates a new abstract runtime exception.
|
AbstractRuntimeException(String aMessage,
Throwable aCause,
String aErrorCode) |
|
AbstractRuntimeException(Throwable cause) |
Instantiates a new abstract runtime exception.
|
AbstractRuntimeException(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 AbstractRuntimeException(String message, Throwable cause)
message
- the messagecause
- the causepublic AbstractRuntimeException(String message)
message
- the messagepublic AbstractRuntimeException(Throwable cause)
cause
- the causepublic AbstractRuntimeException(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 AbstractRuntimeException(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 AbstractRuntimeException(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.