Class ComponentException.AbstractComponentHandleException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.refcodes.exception.AbstractRuntimeException
org.refcodes.component.ComponentException
org.refcodes.component.ComponentException.AbstractComponentHandleException
- All Implemented Interfaces:
Serializable, HandleAccessor, ErrorCodeAccessor, Trap
- Direct Known Subclasses:
HandleTimeoutException, IllegalHandleStateChangeException, UnknownHandleException, UnsupportedHandleOperationException
- Enclosing class:
ComponentException
protected abstract static class ComponentException.AbstractComponentHandleException
extends ComponentException
implements HandleAccessor
This exception is the base exception for handle related runtime
exceptions.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class ComponentException
ComponentException.AbstractComponentHandleExceptionNested classes/interfaces inherited from interface ErrorCodeAccessor
ErrorCodeAccessor.ErrorCodeBuilder<B>, ErrorCodeAccessor.ErrorCodeMutator, ErrorCodeAccessor.ErrorCodePropertyNested classes/interfaces inherited from interface HandleAccessor
HandleAccessor.HandleMutator<H>, HandleAccessor.HandleProperty<H> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractComponentHandleException(Object aHandle, String aMessage) Instantiates the classComponentException.AbstractComponentHandleException.AbstractComponentHandleException(Object aHandle, String aMessage, String aErrorCode) Instantiates the classComponentException.AbstractComponentHandleException.AbstractComponentHandleException(Object aHandle, String aMessage, Throwable aCause) Instantiates the classComponentException.AbstractComponentHandleException.AbstractComponentHandleException(Object aHandle, String aMessage, Throwable aCause, String aErrorCode) Instantiates the classComponentException.AbstractComponentHandleException.AbstractComponentHandleException(Object aHandle, Throwable aCause) Instantiates the classComponentException.AbstractComponentHandleException.AbstractComponentHandleException(Object aHandle, Throwable aCause, String aErrorCode) Instantiates the classComponentException.AbstractComponentHandleException. -
Method Summary
Methods inherited from class AbstractRuntimeException
getErrorCode, getMessageMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Trap
toLocalizedMessage, toMessage, toMessage, toMessage, toShortLocalizedMessage, toShortMessage
-
Field Details
-
_handle
-
-
Constructor Details
-
AbstractComponentHandleException
Instantiates the classComponentException.AbstractComponentHandleException.- Parameters:
aHandle- The handle involved in this exception.- See Also:
-
AbstractComponentHandleException
public AbstractComponentHandleException(Object aHandle, String aMessage, Throwable aCause, String aErrorCode) Instantiates the classComponentException.AbstractComponentHandleException.- Parameters:
aHandle- The handle involved in this exception.- See Also:
-
AbstractComponentHandleException
Instantiates the classComponentException.AbstractComponentHandleException.- Parameters:
aHandle- The handle involved in this exception.- See Also:
-
AbstractComponentHandleException
Instantiates the classComponentException.AbstractComponentHandleException.- Parameters:
aHandle- The handle involved in this exception.- See Also:
-
AbstractComponentHandleException
Instantiates the classComponentException.AbstractComponentHandleException.- Parameters:
aHandle- The handle involved in this exception.- See Also:
-
AbstractComponentHandleException
Instantiates the classComponentException.AbstractComponentHandleException.- Parameters:
aHandle- The handle involved in this exception.- See Also:
-
-
Method Details
-
getHandle
Retrieves the handle from the handle property.- Specified by:
getHandlein interfaceHandleAccessor- Returns:
- The handle stored by the handle property.
-
getPatternArguments
- Specified by:
getPatternArgumentsin interfaceTrap
-