java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.refcodes.exception.AbstractRuntimeException
org.refcodes.exception.BugException
org.refcodes.exception.UnhandledEnumBugException
- All Implemented Interfaces:
Serializable
,ErrorCodeAccessor
,Trap
An
UnhandledEnumBugException
is thrown in case an enumeration 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
ConstructorsConstructorDescriptionUnhandledEnumBugException
(Enum<?> aEnum) UnhandledEnumBugException
(Enum<?> aEnum, String aMessage) UnhandledEnumBugException
(Enum<?> aEnum, String aMessage, String aErrorCode) UnhandledEnumBugException
(Enum<?> aEnum, String aMessage, Throwable aCause) UnhandledEnumBugException
(Enum<?> aEnum, String aMessage, Throwable aCause, String aErrorCode) UnhandledEnumBugException
(Enum<?> aEnum, Throwable aCause) UnhandledEnumBugException
(Enum<?> aEnum, 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
-
UnhandledEnumBugException
- Parameters:
aEnum
- The enumeration not being considered by the code.
-
UnhandledEnumBugException
- Parameters:
aEnum
- The enumeration not being considered by the code.
-
UnhandledEnumBugException
- Parameters:
aEnum
- The enumeration not being considered by the code.
-
UnhandledEnumBugException
- Parameters:
aEnum
- The enumeration not being considered by the code.
-
UnhandledEnumBugException
- Parameters:
aEnum
- The enumeration not being considered by the code.
-
UnhandledEnumBugException
public UnhandledEnumBugException(Enum<?> aEnum, String aMessage, Throwable aCause, String aErrorCode) - Parameters:
aEnum
- The enumeration not being considered by the code.
-
UnhandledEnumBugException
- Parameters:
aEnum
- The enumeration not being considered by the code.
-
-
Method Details
-
getEnum
Returns the unconsidered enumeration in question.- Returns:
- The according enumeration.
-