Interface ExceptionHandler

    • Method Detail

      • getExceptionTypes

        MDWEList<Classifier> getExceptionTypes()
        Returns the value of the 'Exception Type' reference list. The list contents are of type Classifier. 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.
        Returns:
        the value of the 'Exception Type' reference list.
        See Also:
        UMLPackage.getExceptionHandler_ExceptionType()
      • getExceptionType

        Classifier getExceptionType​(String name)
        Retrieves the first Classifier with the specified 'Name' from the ' Exception Type' reference list.
        Parameters:
        name - The 'Name' of the Classifier to retrieve, or null.
        Returns:
        The first Classifier with the specified 'Name', or null.
        See Also:
        getExceptionTypes()
      • getExceptionType

        Classifier getExceptionType​(String name,
                                    boolean ignoreCase,
                                    org.eclipse.emf.ecore.EClass eClass)
        Retrieves the first Classifier with the specified 'Name' from the ' Exception Type' reference list.
        Parameters:
        name - The 'Name' of the Classifier to retrieve, or null.
        ignoreCase - Whether to ignore case in String comparisons.
        eClass - The Ecore class of the Classifier to retrieve, or null.
        Returns:
        The first Classifier with the specified 'Name', or null.
        See Also:
        getExceptionTypes()
      • setProtectedNode

        void setProtectedNode​(ExecutableNode value)
        Sets the value of the 'Protected Node' container reference.
        Parameters:
        value - the new value of the 'Protected Node' container reference.
        See Also:
        getProtectedNode()
      • validateExceptionBody

        boolean validateExceptionBody​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                      Map context)
        The exception handler and its input object node are not the source or target of any edge. true
      • validateResultPins

        boolean validateResultPins​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                   Map context)
        The result pins of the exception handler body must correspond in number and types to the result pins of the protected node. true
      • validateOneInput

        boolean validateOneInput​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                 Map context)
        The handler body has one input, and that input is the same as the exception input. true
      • validateEdgeSourceTarget

        boolean validateEdgeSourceTarget​(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
                                         Map context)
        An edge that has a source in an exception handler structured node must have its target in the handler also, and vice versa. true