public class BugException extends AbstractRuntimeException
BugException is being thrown.
Example: In case an enumeration is evaluated and an "unexpected" enumeration
value is identified by the code (it does not know how to continue with that
explicit enumeration value), then either the enumeration has been wrongly
extended by new values or the code as not been extended to process that newly
added enumeration. Her in a switch / case's "default" block you may throw a
BugException.ErrorCodeAccessor.ErrorCodeBuilder<B extends ErrorCodeAccessor.ErrorCodeBuilder<B>>, ErrorCodeAccessor.ErrorCodeMutator, ErrorCodeAccessor.ErrorCodeProperty| Constructor and Description |
|---|
BugException(String aMessage)
Instantiates a new bug exception.
|
BugException(String aMessage,
String aErrorCode)
Instantiates a new bug exception.
|
BugException(String message,
Throwable cause)
Instantiates a new bug exception.
|
BugException(String aMessage,
Throwable aCause,
String aErrorCode)
Instantiates a new bug exception.
|
BugException(Throwable cause)
Instantiates a new bug exception.
|
BugException(Throwable aCause,
String aErrorCode)
Instantiates a new bug exception.
|
getErrorCodeaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic BugException(String aMessage)
aMessage - the a messagepublic BugException(String message, Throwable cause)
message - the messagecause - the causepublic BugException(Throwable cause)
cause - the causepublic BugException(String aMessage, String aErrorCode)
aMessage - the a messageaErrorCode - the a error codepublic BugException(String aMessage, Throwable aCause, String aErrorCode)
aMessage - the a messageaCause - the a causeaErrorCode - the a error codeCopyright © 2017. All rights reserved.