Class BugException

All Implemented Interfaces:
Serializable, ErrorCodeAccessor, Trap

public class BugException extends AbstractRuntimeException
A bug exception is thrown when it surely must be a bug when reaching the place when the 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.
See Also:
  • Constructor Details

    • BugException

      public BugException(String aMessage)
      Instantiates a new bug exception.
      Parameters:
      aMessage - The aMessage describing this exception.
    • BugException

      public BugException(String aMessage, Throwable aCause)
      Instantiates a new bug exception.
      Parameters:
      aMessage - The aMessage describing this exception.
      aCause - The Throwable (Exception) causing this exception.
    • BugException

      public BugException(Throwable aCause)
      Instantiates a new bug exception.
      Parameters:
      aCause - The Throwable (Exception) causing this exception.
    • BugException

      public BugException(String aMessage, String aErrorCode)
      Instantiates a new bug exception.
      Parameters:
      aMessage - The aMessage describing this exception.
      aErrorCode - The error code identifying this exception.
    • BugException

      public BugException(String aMessage, Throwable aCause, String aErrorCode)
      Instantiates a new bug exception.
      Parameters:
      aMessage - The aMessage describing this exception.
      aCause - The Throwable (Exception) causing this exception.
      aErrorCode - The error code identifying this exception.
    • BugException

      public BugException(Throwable aCause, String aErrorCode)
      Instantiates a new bug exception.
      Parameters:
      aCause - The Throwable (Exception) causing this exception.
      aErrorCode - The error code identifying this exception.