UML.Semantic.BehavioralElements.CommonBehavior
Class Exception

java.lang.Object
  |
  +--UML.Semantic.Foundation.Core.ModelElement
        |
        +--UML.Semantic.Foundation.Core.Namespace
              |
              +--UML.Semantic.Foundation.Core.GeneralizableElement
                    |
                    +--UML.Semantic.BehavioralElements.CommonBehavior.Signal
                          |
                          +--UML.Semantic.BehavioralElements.CommonBehavior.Exception
All Implemented Interfaces:
Element, ElementAtt, LinkAtt, Request

public class Exception
extends Signal

An exception is a signal raised by behavioral features typically in case of execution faults. In the metamodel, Exception is derived from Signal. An Exception is associated with the BehavioralFeature that raises it.


Constructor Summary
Exception()
           
 
Method Summary
 boolean check()
          Checks if well-formedness rules are respected in this model element.
 java.lang.String getBody()
          Gets the text body of the exception.
 void setBody(java.lang.String body)
          Assigns the given text to the exception body.
 
Methods inherited from class UML.Semantic.BehavioralElements.CommonBehavior.Signal
add, getParameter, getParameterList
 
Methods inherited from class UML.Semantic.Foundation.Core.GeneralizableElement
add, allOwnedElement, allSupertype, getGeneralization, getInfo, getIsAbstract, getIsLeaf, getIsRoot, getSpecialization, getSupertype, inheritedOwnedElement, inheritedSupertype, setIsAbstract, setIsLeaf, setIsRoot
 
Methods inherited from class UML.Semantic.Foundation.Core.Namespace
add, allContents, allContents, getOwnedElement, subContents
 
Methods inherited from class UML.Semantic.Foundation.Core.ModelElement
add, getBindingList, getConstraintList, getElementType, getErrors, getHref, getId, getIdentification, getIdref, getIndex, getIsOwned, getLabel, getLocator, getName, getNamespace, getNamespaceId, getStereotype, getTemplate, getTemplateParameterList, getTitle, getUuid, getUuidref, getVisibility, getVisibilitySymbol, getWarnings, setElementType, setErrors, setHref, setId, setIdref, setIndex, setIsOwned, setLabel, setName, setNamespace, setTemplate, setTitle, setUuid, setUuidref, setVisibility, setWarnings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Exception

public Exception()
Method Detail

setBody

public void setBody(java.lang.String body)
Assigns the given text to the exception body.


getBody

public java.lang.String getBody()
Gets the text body of the exception.

Returns:
The body text.

check

public boolean check()
Checks if well-formedness rules are respected in this model element.

Overrides:
check in class Signal
Returns:
True if check was successful, false otherwise.