Class UnhandledEnumBugException
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 ErrorCodeAccessor
ErrorCodeAccessor.ErrorCodeBuilder<B>, ErrorCodeAccessor.ErrorCodeMutator, ErrorCodeAccessor.ErrorCodeProperty -
Constructor Summary
ConstructorsConstructorDescriptionUnhandledEnumBugException(Enum<?> aEnum) Instantiates the classUnhandledEnumBugException.UnhandledEnumBugException(Enum<?> aEnum, String aMessage) Instantiates the classUnhandledEnumBugException.UnhandledEnumBugException(Enum<?> aEnum, String aMessage, String aErrorCode) Instantiates the classUnhandledEnumBugException.UnhandledEnumBugException(Enum<?> aEnum, String aMessage, Throwable aCause) Instantiates the classUnhandledEnumBugException.UnhandledEnumBugException(Enum<?> aEnum, String aMessage, Throwable aCause, String aErrorCode) Instantiates the classUnhandledEnumBugException.UnhandledEnumBugException(Enum<?> aEnum, Throwable aCause) Instantiates the classUnhandledEnumBugException.UnhandledEnumBugException(Enum<?> aEnum, Throwable aCause, String aErrorCode) Instantiates the classUnhandledEnumBugException. -
Method Summary
Methods inherited from class AbstractRuntimeException
getErrorCode, getMessageMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Trap
getPatternArguments, toLocalizedMessage, toMessage, toMessage, toMessage, toShortLocalizedMessage, toShortMessage
-
Constructor Details
-
UnhandledEnumBugException
Instantiates the classUnhandledEnumBugException.- Parameters:
aEnum- The enumeration not being considered by the code.
-
UnhandledEnumBugException
Instantiates the classUnhandledEnumBugException.- Parameters:
aEnum- The enumeration not being considered by the code.- See Also:
-
UnhandledEnumBugException
Instantiates the classUnhandledEnumBugException.- Parameters:
aEnum- The enumeration not being considered by the code.- See Also:
-
UnhandledEnumBugException
Instantiates the classUnhandledEnumBugException.- Parameters:
aEnum- The enumeration not being considered by the code.- See Also:
-
UnhandledEnumBugException
Instantiates the classUnhandledEnumBugException.- Parameters:
aEnum- The enumeration not being considered by the code.- See Also:
-
UnhandledEnumBugException
public UnhandledEnumBugException(Enum<?> aEnum, String aMessage, Throwable aCause, String aErrorCode) Instantiates the classUnhandledEnumBugException.- Parameters:
aEnum- The enumeration not being considered by the code.- See Also:
-
UnhandledEnumBugException
Instantiates the classUnhandledEnumBugException.- Parameters:
aEnum- The enumeration not being considered by the code.- See Also:
-
-
Method Details
-
getEnum
Returns the unconsidered enumeration in question.- Returns:
- The according enumeration.
-