Module org.refcodes.component
Package org.refcodes.component
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.refcodes.component.ComponentRuntimeException
ComponentRuntimeException.ComponentHandleRuntimeException
Nested classes/interfaces inherited from interface org.refcodes.exception.ErrorCodeAccessor
org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B extends org.refcodes.exception.ErrorCodeAccessor.ErrorCodeBuilder<B>>, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeMutator, org.refcodes.exception.ErrorCodeAccessor.ErrorCodeProperty
Nested classes/interfaces inherited from interface org.refcodes.component.HandleAccessor
HandleAccessor.HandleMutator<H>, HandleAccessor.HandleProperty<H>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionComponentHandleRuntimeException
(Object aHandle, Throwable aCause) ComponentHandleRuntimeException
(Object aHandle, Throwable aCause, String aErrorCode) ComponentHandleRuntimeException
(String aMessage, Object aHandle) ComponentHandleRuntimeException
(String aMessage, Object aHandle, String aErrorCode) ComponentHandleRuntimeException
(String aMessage, Object aHandle, Throwable aCause) ComponentHandleRuntimeException
(String aMessage, Object aHandle, Throwable aCause, String aErrorCode) -
Method Summary
Methods inherited from class org.refcodes.exception.AbstractRuntimeException
getErrorCode, getMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.refcodes.exception.Trap
toLocalizedMessage, toMessage, toMessage, toMessage, toShortLocalizedMessage, toShortMessage
-
Field Details
-
_handle
-
-
Constructor Details
-
ComponentHandleRuntimeException
- 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
- Parameters:
aHandle
- The handle involved in this exception.
-
ComponentHandleRuntimeException
- Parameters:
aHandle
- The handle involved in this exception.
-
ComponentHandleRuntimeException
- Parameters:
aHandle
- The handle involved in this exception.
-
ComponentHandleRuntimeException
- Parameters:
aHandle
- The handle involved in this exception.
-
-
Method Details
-
getHandle
Retrieves the handle from the handle property.- Specified by:
getHandle
in interfaceHandleAccessor
- Returns:
- The handle stored by the handle property.
-
getPatternArguments
- Specified by:
getPatternArguments
in interfaceorg.refcodes.exception.Trap
-