Class UnhandledEnumBugException

All Implemented Interfaces:
Serializable, ErrorCodeAccessor, Trap

public class UnhandledEnumBugException extends BugException
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:
  • Constructor Details

    • UnhandledEnumBugException

      public UnhandledEnumBugException(Enum<?> aEnum)
      Parameters:
      aEnum - The enumeration not being considered by the code.
    • UnhandledEnumBugException

      public UnhandledEnumBugException(Enum<?> aEnum, String aMessage)
      Parameters:
      aEnum - The enumeration not being considered by the code.
    • UnhandledEnumBugException

      public UnhandledEnumBugException(Enum<?> aEnum, String aMessage, Throwable aCause)
      Parameters:
      aEnum - The enumeration not being considered by the code.
    • UnhandledEnumBugException

      public UnhandledEnumBugException(Enum<?> aEnum, Throwable aCause)
      Parameters:
      aEnum - The enumeration not being considered by the code.
    • UnhandledEnumBugException

      public UnhandledEnumBugException(Enum<?> aEnum, String aMessage, String aErrorCode)
      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

      public UnhandledEnumBugException(Enum<?> aEnum, Throwable aCause, String aErrorCode)
      Parameters:
      aEnum - The enumeration not being considered by the code.
  • Method Details

    • getEnum

      public Enum<?> getEnum()
      Returns the unconsidered enumeration in question.
      Returns:
      The according enumeration.