public class BugException extends AbstractException.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.ErrorCodeMutator, ErrorCodeAccessor.ErrorCodeProperty
Constructor and Description |
---|
BugException(String aMessage) |
BugException(String aMessage,
String aErrorCode) |
BugException(String message,
Throwable cause) |
BugException(String aMessage,
Throwable aCause,
String aErrorCode) |
BugException(Throwable cause) |
BugException(Throwable aCause,
String aErrorCode) |
getErrorCode
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Copyright © 2016. All rights reserved.