Class ComponentRuntimeException.ComponentHandleRuntimeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.refcodes.exception.AbstractRuntimeException
org.refcodes.component.ComponentRuntimeException
org.refcodes.component.ComponentRuntimeException.ComponentHandleRuntimeException
All Implemented Interfaces:
Serializable, HandleAccessor, org.refcodes.exception.ErrorCodeAccessor, org.refcodes.exception.Trap
Direct Known Subclasses:
HandleTimeoutRuntimeException, IllegalHandleStateChangeRuntimeException, UnknownHandleRuntimeException, UnsupportedHandleOperationRuntimeException
Enclosing class:
ComponentRuntimeException

protected abstract static class ComponentRuntimeException.ComponentHandleRuntimeException extends ComponentRuntimeException implements HandleAccessor
This exception is the base exception for handle related runtime exceptions.
See Also:
  • Field Details

    • _handle

      protected Object _handle
  • Constructor Details

    • ComponentHandleRuntimeException

      public ComponentHandleRuntimeException(String aMessage, Object aHandle, String aErrorCode)
      Parameters:
      aHandle - The handle involved in this exception.
    • ComponentHandleRuntimeException

      public ComponentHandleRuntimeException(String aMessage, Object aHandle, Throwable aCause, String aErrorCode)
      Parameters:
      aHandle - The handle involved in this exception.
    • ComponentHandleRuntimeException

      public ComponentHandleRuntimeException(String aMessage, Object aHandle, Throwable aCause)
      Parameters:
      aHandle - The handle involved in this exception.
    • ComponentHandleRuntimeException

      public ComponentHandleRuntimeException(String aMessage, Object aHandle)
      Parameters:
      aHandle - The handle involved in this exception.
    • ComponentHandleRuntimeException

      public ComponentHandleRuntimeException(Object aHandle, Throwable aCause, String aErrorCode)
      Parameters:
      aHandle - The handle involved in this exception.
    • ComponentHandleRuntimeException

      public ComponentHandleRuntimeException(Object aHandle, Throwable aCause)
      Parameters:
      aHandle - The handle involved in this exception.
  • Method Details

    • getHandle

      public Object getHandle()
      Retrieves the handle from the handle property.
      Specified by:
      getHandle in interface HandleAccessor
      Returns:
      The handle stored by the handle property.
    • getPatternArguments

      public Object[] getPatternArguments()
      Specified by:
      getPatternArguments in interface org.refcodes.exception.Trap