public interface ExceptionHandler extends Element
An ExceptionHandler is an Element that specifies a handlerBody ExecutableNode to execute in case the specified exception occurs during the execution of the protected ExecutableNode.
The following features are supported:
UMLPackage.getExceptionHandler()
Modifier and Type | Method and Description |
---|---|
ObjectNode |
getExceptionInput()
Returns the value of the 'Exception Input' reference.
|
java.util.Collection<Classifier> |
getExceptionType()
Returns the value of the 'Exception Type' reference list.
|
ExecutableNode |
getHandlerBody()
Returns the value of the 'Handler Body' reference.
|
ExecutableNode |
getProtectedNode()
Returns the value of the 'Protected Node' container reference.
|
boolean |
hasExceptionType() |
void |
setExceptionInput(ObjectNode value)
Sets the value of the '
Exception Input '
reference. |
void |
setHandlerBody(ExecutableNode value)
Sets the value of the '
Handler Body '
reference. |
void |
setProtectedNode(ExecutableNode value)
Sets the value of the '
Protected Node '
container reference. |
get_activityPartitionOfRepresents, get_commentOfAnnotatedElement, get_constraintOfConstrainedElement, get_diagramOfContext, get_directedRelationshipOfSource, get_directedRelationshipOfTarget, get_elementOfSyncElement, get_elementValueOfElement, get_relationshipOfRelatedElement, getAppliedStereotypeInstance, getOwnedComment, getOwnedElement, getOwner, getSyncElement, has_activityPartitionOfRepresents, has_commentOfAnnotatedElement, has_constraintOfConstrainedElement, has_diagramOfContext, has_directedRelationshipOfSource, has_directedRelationshipOfTarget, has_elementOfSyncElement, has_elementValueOfElement, has_relationshipOfRelatedElement, hasOwnedComment, hasOwnedElement, setAppliedStereotypeInstance, setOwner, setSyncElement
get_representationText, getLocalID, isInvalid, set_representationText, setLocalID, sGetLocalID
getID, getMDExtension, getMdExtensions, setID
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
accept, addPropertyChangeListener, canAdd, canAdd, canAddChild, canBeDeleted, firePropertyChange, getClassType, getHumanName, getHumanType, getObjectParent, isEditable, removePropertyChangeListener, sGetID
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
@CheckForNull ExecutableNode getHandlerBody()
exception Handler Of Handler Body
'.
An ExecutableNode that is executed if the ExceptionHandler catches an exception.
setHandlerBody(ExecutableNode)
,
UMLPackage.getExceptionHandler_HandlerBody()
,
ExecutableNode.get_exceptionHandlerOfHandlerBody()
void setHandlerBody(@CheckForNull ExecutableNode value)
Handler Body
'
reference.
value
- the new value of the 'Handler Body' reference.getHandlerBody()
@CheckForNull ObjectNode getExceptionInput()
exception Handler Of Exception Input
'.
An ObjectNode within the handlerBody. When the ExceptionHandler catches an exception, the exception token is placed on this ObjectNode, causing the handlerBody
to execute.
setExceptionInput(ObjectNode)
,
UMLPackage.getExceptionHandler_ExceptionInput()
,
ObjectNode.get_exceptionHandlerOfExceptionInput()
void setExceptionInput(@CheckForNull ObjectNode value)
Exception Input
'
reference.
value
- the new value of the 'Exception Input' reference.getExceptionInput()
java.util.Collection<Classifier> getExceptionType()
Classifier
.
It is bidirectional and its opposite is
'exception Handler Of Exception Type
'.
The Classifiers whose instances the ExceptionHandler catches as exceptions. If an exception occurs whose type is any exceptionType, the ExceptionHandler catches
the exception and executes the handlerBody.
UMLPackage.getExceptionHandler_ExceptionType()
,
Classifier.get_exceptionHandlerOfExceptionType()
@CheckForNull ExecutableNode getProtectedNode()
Handler
'.
The ExecutableNode protected by the ExceptionHandler. If an exception propagates out of the protectedNode and has a type matching one of the exceptionTypes, then
it is caught by this ExceptionHandler.
setProtectedNode(ExecutableNode)
,
UMLPackage.getExceptionHandler_ProtectedNode()
,
ExecutableNode.getHandler()
void setProtectedNode(@CheckForNull ExecutableNode value)
Protected Node
'
container reference.
value
- the new value of the 'Protected Node' container reference.getProtectedNode()
boolean hasExceptionType() throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiException