Class DestroyException

All Implemented Interfaces:
Serializable, org.refcodes.exception.ErrorCodeAccessor, org.refcodes.exception.Trap

public class DestroyException extends LifecycleException.LifecycleRuntimeException
Thrown in case destroying a component caused problems. Usually a method similar to "destroy()" throws such an exception. This is a RuntimeException as destroying a component should always succeed and a DestroyException should only be thrown in case of obvious malfunctioning and the philosophy of "fail early!" without forcing a method to declare an according checked exception!
See Also:
  • Constructor Details

    • DestroyException

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

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

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

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

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

      public DestroyException(Throwable aCause)
      Instantiates a new destroy exception.
      Parameters:
      aCause - The Throwable (Exception) causing this exception.