Serializable
, ErrorCodeAccessor
, Trap
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 | 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.
|
getErrorCode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public BugException(String aMessage)
aMessage
- the messagepublic BugException(String message, Throwable cause)
message
- the messagecause
- the causepublic BugException(Throwable cause)
cause
- the causepublic BugException(String aMessage, String aErrorCode)
aMessage
- the messageaErrorCode
- the error codepublic BugException(String aMessage, Throwable aCause, String aErrorCode)
aMessage
- the messageaCause
- the causeaErrorCode
- the error codeCopyright © 2021. All rights reserved.