java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.refcodes.exception.AbstractRuntimeException
org.refcodes.exception.BugException
org.refcodes.exception.UnhandledValueBugException
- All Implemented Interfaces:
Serializable
,ErrorCodeAccessor
,Trap
An
UnhandledValueBugException
is thrown in case a value was
encountered which is not being considered by the code (e.g. in a
switch/case-statement): We have a coding error!- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.refcodes.exception.ErrorCodeAccessor
ErrorCodeAccessor.ErrorCodeBuilder<B extends ErrorCodeAccessor.ErrorCodeBuilder<B>>, ErrorCodeAccessor.ErrorCodeMutator, ErrorCodeAccessor.ErrorCodeProperty
-
Constructor Summary
ConstructorsConstructorDescriptionUnhandledValueBugException
(Object aValue) UnhandledValueBugException
(Object aValue, String aMessage) UnhandledValueBugException
(Object aValue, String aMessage, String aErrorCode) UnhandledValueBugException
(Object aValue, String aMessage, Throwable aCause) UnhandledValueBugException
(Object aValue, String aMessage, Throwable aCause, String aErrorCode) UnhandledValueBugException
(Object aValue, Throwable aCause) UnhandledValueBugException
(Object aValue, Throwable aCause, String aErrorCode) -
Method Summary
Methods inherited from class org.refcodes.exception.AbstractRuntimeException
getErrorCode, getMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.refcodes.exception.Trap
getPatternArguments, toLocalizedMessage, toMessage, toMessage, toMessage, toShortLocalizedMessage, toShortMessage
-
Constructor Details
-
UnhandledValueBugException
- Parameters:
aValue
- The value not being considered by the code.
-
UnhandledValueBugException
- Parameters:
aValue
- The value not being considered by the code.
-
UnhandledValueBugException
- Parameters:
aValue
- The value not being considered by the code.
-
UnhandledValueBugException
- Parameters:
aValue
- The value not being considered by the code.
-
UnhandledValueBugException
- Parameters:
aValue
- The value not being considered by the code.
-
UnhandledValueBugException
public UnhandledValueBugException(Object aValue, String aMessage, Throwable aCause, String aErrorCode) - Parameters:
aValue
- The value not being considered by the code.
-
UnhandledValueBugException
- Parameters:
aValue
- The value not being considered by the code.
-
-
Method Details
-
getValue
Returns the unconsidered value in question.- Returns:
- The according value.
-