Software Disclaimer

Class UML 2.4.1::ExceptionHandler


An exception handler is an element that specifies a body to execute in case the specified exception occurs during the execution of the protected node.

Direct Superclasses: Element

Direct Subclasses:

Class Precedence List: ExceptionHandler, Element


exceptionInput : ObjectNode (1 1); -- source ExceptionHandler
exceptionType : Classifier (1 *); -- source ExceptionHandler

The kind of instances that the handler catches. If an exception occurs whose type is any of the classifiers in the set, the handler catches the exception and executes its body.

handlerBody : ExecutableNode (1 1); -- source ExceptionHandler
protectedNode : ExecutableNode (1 1); -- source ExceptionHandler
ownedComment : Comment (0 *); -- source Element

The Comments owned by this element.
Subsets: Element.ownedElement

ownedElement : Element (0 *); -- source Element
owner : Element (0 1); -- source Element

The Element that owns this element.
Derived union with sources: (protectedNode)
Opposite: Element.ownedElement


Signature: result_pins() : Boolean;
Description: If the protected node is a StructuredActivityNode with output pins, then the exception handler body must also be a StructuredActivityNode with output pins that correspond in number and types to those of the protected node.
Expression: true

Signature: one_input() : Boolean;
Description: The handler body has one input, and that input is the same as the exception input.
Expression: true

Signature: exception_body() : Boolean;
Description: The exception handler and its input object node are not the source or target of any edge.
Expression: true

Signature: edge_source_target() : Boolean;
Description: An edge that has a source in an exception handler structured node must have its target in the handler also, and vice versa.
Expression: true


No additional operations.

Send questions or comments to [email protected].