de.mid.innovator.srv2api.icw2ac
Interface ACExceptionHandler

All Superinterfaces:
ADClientAble, ADFindAble, ADM2AttrModifyAble, ELContainerAble, ELContAsgnAble, ELDeleteAble, ELElement, ELObject, ELValueContainerAble, MECommentAble, MEConstraintAble, MEModelElement, MEStereotypeAble, MMCommentContainerAble, MMStereotypeAble

public interface ACExceptionHandler
extends MEConstraintAble, MEStereotypeAble, MECommentAble

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.

See Also:
ACExceptionHandlerHelper

Nested Class Summary
static class ACExceptionHandler.VAttr
           
 
Method Summary
 ANInputPin createPinOnExceptionHandler(ELElement item)
          If an ACExceptionHandler is to be created between the protected node and the exception input pin, whereas the target of the selection is not an ANInputPin but a ANCallBehavior or ANOpaque, then this command will create and return the missing ANInputPin, so that the ACExceptionHandler can be created correctly.
 ACObjectNode getExceptionInput()
          An object node within the handler body.
<T extends CLClassifier>
List<T>
getExceptionType(Class<T> returnType)
          The kind of instances that the handler catches.
 ACExecutableNode getHandlerBody()
          A node that is executed if the handler satisfies an uncaught exception.
 ACExecutableNode getProtectedNode()
          The node protected by the handler.
 ACExceptionHandler reconnect(ADClientAble ohNew, K_SIDE side, Point pos)
          Reconnects the exception handler.
 void setExceptionInput(ACObjectNode value)
          Set the value of Foreign Key ExceptionInput.
 void setExceptionType(List<? extends CLClassifier> values)
          Set the value of Foreign Key ExceptionType.
 void setHandlerBody(ACExecutableNode value)
          Set the value of Foreign Key HandlerBody.
 
Methods inherited from interface de.mid.innovator.srv2api.icw2model.MEConstraintAble
getAssignedConstraint, getAssignedConstraint, getConstraintAssign
 
Methods inherited from interface de.mid.innovator.srv2api.icw2model.MEStereotypeAble
getClientMappingDependency, getOutgoingConceptRealization, getProxyAsgProperty, getRealizedConcept, getRealizedConcept, getRepresentingArtifact, getRequirementOfStakeholder, getRequirementOfStakeholderOwner, isMapped, replaceRealizedConcepts, setMapped, setRealizedConcept, setRequirementOfStakeholder
 
Methods inherited from interface de.mid.innovator.srv2api.icw2meta.MMCommentContainerAble
getOwnedComment
 
Methods inherited from interface de.mid.innovator.srv2api.icw2meta.MMStereotypeAble
assignStereotypeDlg, cloneElement, getAttrCnstrEffective, getCreateTemplate, getDisplayType, getOwnedFormat, getOwnedStereotypePropertyValSpec, getPropBoolValue, getPropLongValue, getPropStringValue, getPropValueList, getStereoPropValueByPattern, getStereoPropValueByPattern, getStereotype, getStereotypeName, getStereotypeProperty, getStereotypePropertyInfo, getStereotypePropertyNameValue, isCloneAbleElement, modifyStereotypePropertyValuesByName, setStereotype, setStereotypePropertyInfo
 
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELContainerAble
getCheckSetNotToLocalizeAttribute, getClientDependency, getNotToLocalizeAttribute, getOwnedElement, getOwnedElementTransitiveDown, getOwnedElementTransitiveDown, getOwnedElementTransitiveDownAndUnresolved, getOwnedElementTransitiveDownAndUnresolved, getOwnedLocalizedValue, getOwnedOrReferencedElementTransitiveDown, getOwnedOrReferencedElementTransitiveDown, getOwnedRelshipBinDirWithTarget, getOwnedRelshipBinDirWithTarget, getRedirectedModelContainer, getRelshipBinDirSource, getSelfAndOwnedElementTransitiveDown, getSelfAndOwnedElementTransitiveDown, getSortedContents, resetNotToLocalizeAttribute, setNotToLocalizeAttribute, sortContents
 
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELDeleteAble
delete
 
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELElement
duplicateElement, getAssignAbleToVattr, getAssignAbleToVattr, getClientId, getCreateTemplateOfInstance, getDisplayBitmap, getDisplayColor, getDisplayFont, getDisplayLine, getDisplayName, getDisplayNameShort, getDisplayNSName, getElementCache, getElementMappingInformation, getQualifiedNamespaceName, getRelshipBinDir, getRelshipBinDir, getRelshipBinDirTarget, getUnitToLock, getValSpecElement, isContainedInProfile, isUnresolved, lockUnit, setUnresolved, unlockUnit
 
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELObject
getId, getLongId, getMetaClass, getMetaName, getOclClass, getSrvCon, hasRead
 
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELContAsgnAble
getAsgnKind, getContSortOrder, getFirstOwnerWhichIsConformTo, getOwner, getOwnerTransitive, getOwnerTransitive, getSelfAndOwnerTransitive, getSelfAndOwnerTransitive, getVersionRoot, isTransitiveChildOf, setAsgnKind, setContSortOrder, setOwner
 
Methods inherited from interface de.mid.innovator.srv2api.icw2elem.ELValueContainerAble
getValueReUseAble, setValueReUseAble
 
Methods inherited from interface de.mid.innovator.srv2api.icw2model.MECommentAble
getAssignedComment, getAssignedComment, getCommentAssign
 
Methods inherited from interface de.mid.innovator.srv2api.icw2model.MEModelElement
buildProxyConnection, getActivityPartition, getConsider, getContentStereotypeByClass, getCreateTemplateByClass, getElementColor, getFirstValidContentStereotype, getIgnore, getKnownTypeSystems, getMEModelName, getModelElement, getModelElement, getPresContext, getPresContext, getPresetMapping, getPRPresContent, setElementColor
 
Methods inherited from interface de.mid.innovator.srv2api.icw2meta.ADClientAble
getAnnotation, getLogic, getLogic, getPresentationContext, getSection
 
Methods inherited from interface de.mid.innovator.srv2api.icw2meta.ADM2AttrModifyAble
getTabCell, getTabCellObjectList, getTabCreateTemplate, getTabCreateTemplateObjectList, getTabElement, getTabElementRowList, getTabElementRowTypeList, getTabRowList, tabCellModify, tabCreateTemplate, tabElementModify
 

Method Detail

createPinOnExceptionHandler

ANInputPin createPinOnExceptionHandler(ELElement item)
                                       throws InoNetException,
                                              SrvErrorException
If an ACExceptionHandler is to be created between the protected node and the exception input pin, whereas the target of the selection is not an ANInputPin but a ANCallBehavior or ANOpaque, then this command will create and return the missing ANInputPin, so that the ACExceptionHandler can be created correctly.

Parameters:
item - ELElement instance
Throws:
InoNetException
SrvErrorException

getExceptionInput

ACObjectNode getExceptionInput()
                               throws InoNetException,
                                      SrvErrorException
An object node within the handler body. When the handler catches an exception, the exception token is placed in this node which causes the body to execute. Handler body.

Throws:
InoNetException
SrvErrorException

getExceptionType

<T extends CLClassifier> List<T> getExceptionType(Class<T> returnType)
                                              throws InoNetException,
                                                     SrvErrorException
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.

Parameters:
returnType - Specifies the type of elements to be returned.
Throws:
InoNetException
SrvErrorException

getHandlerBody

ACExecutableNode getHandlerBody()
                                throws InoNetException,
                                       SrvErrorException
A node that is executed if the handler satisfies an uncaught exception.

Throws:
InoNetException
SrvErrorException

getProtectedNode

ACExecutableNode getProtectedNode()
                                  throws InoNetException,
                                         SrvErrorException
The node protected by the handler. The handler is examined if an exception propagates to the outside of the node.

Throws:
InoNetException
SrvErrorException

reconnect

ACExceptionHandler reconnect(ADClientAble ohNew,
                             K_SIDE side,
                             Point pos)
                             throws InoNetException,
                                    SrvErrorException
Reconnects the exception handler.

Parameters:
ohNew -
side -
pos - Position (optional)
Throws:
InoNetException
SrvErrorException

setExceptionInput

void setExceptionInput(ACObjectNode value)
                       throws InoNetException,
                              SrvErrorException
Set the value of Foreign Key ExceptionInput.

Parameters:
value - The value to be set.
Throws:
InoNetException
SrvErrorException

setExceptionType

void setExceptionType(List<? extends CLClassifier> values)
                      throws InoNetException,
                             SrvErrorException
Set the value of Foreign Key ExceptionType.

Parameters:
values - The value to be set.
Throws:
InoNetException
SrvErrorException

setHandlerBody

void setHandlerBody(ACExecutableNode value)
                    throws InoNetException,
                           SrvErrorException
Set the value of Foreign Key HandlerBody.

Parameters:
value - The value to be set.
Throws:
InoNetException
SrvErrorException