statements
KlasseExceptionHandler

This class represents handlings of exceptions. A typical exception handling consists of a guarded block, also known as try block, and several catch blocks. An optional finally block can be contained.

Attribute
<Class> CatchBlock catchBlocks catchBlocks

This property represents a list of the catch blocks of this exception handler.

<Class> BlockStatement finallyBlock finallyBlock

This property represents a reference to the finally block of this exception handler. If there is no finally block then this property will be "null".

<Class> BlockStatement guardedBlock guardedBlock

This property represents a reference to the block statement which is guarded by this exception handler.

!!TableHeading.InheritedAttributes!!gast::statements::Statement gast::statements::Statement
accesses accesses, surroundingStatement surroundingStatement, numberOfStatements numberOfStatements, maximumNestingLevel maximumNestingLevel, numberOfComments numberOfComments, linesOfCode linesOfCode, numberOfEdgesInCFG numberOfEdgesInCFG, numberOfNodesInCFG numberOfNodesInCFG

!!TableHeading.InheritedAttributes!!gast::core::SourceEntity gast::core::SourceEntity
position position

!!TableHeading.InheritedAttributes!!gast::core::ModelElement gast::core::ModelElement
annotations annotations, status status, uniqueId uniqueId

!!TableHeading.InheritedOperations!!gast::statements::Statement gast::statements::Statement

!!TableHeading.InheritedOperations!!gast::core::SourceEntity gast::core::SourceEntity

!!TableHeading.InheritedOperations!!gast::core::ModelElement gast::core::ModelElement

Eigenschaften:

Alias
Classifier Behavior
Is Abstractfalse
Is Activefalse
Is Leaffalse
Keywords
NameExceptionHandler
Name Expression
Namespace<<ePackage>> <Package> statements
Owned Template Signature
Owner<<ePackage>> <Package> statements
Owning Template Parameter
Package<<ePackage>> <Package> statements
Qualified Namegast::statements::ExceptionHandler
Representation
Stereotype
Template Parameter
VisibilityPublic

Details für Attribute

 catchBlocks
Public <Class> CatchBlock catchBlocks

This property represents a list of the catch blocks of this exception handler.

Eigenschaften:

AggregationComposite
Alias
Association<Association> A_catchBlocks_exceptionHandler
Association End
Class<Class> ExceptionHandler
Datatype
Default
Default Value
Is Compositetrue
Is Derivedfalse
Is Derived Unionfalse
Is Leaffalse
Is Orderedfalse
Is Read Onlyfalse
Is Staticfalse
Is Uniquetrue
Keywords
Lower1
Lower Value<Literal Integer> 1
Multiplicity1..*
NamecatchBlocks
Name Expression
Namespace<Class> ExceptionHandler
Opposite
Owned Template Signature
Owner<Class> ExceptionHandler
Owning Association
Owning Template Parameter
Qualified Namegast::statements::ExceptionHandler::catchBlocks
Stereotype
Template Parameter
Type<Class> CatchBlock
Upper*
Upper Value<Literal Unlimited Natural> *
VisibilityPublic


 finallyBlock
Public <Class> BlockStatement finallyBlock

This property represents a reference to the finally block of this exception handler. If there is no finally block then this property will be "null".

Eigenschaften:

AggregationComposite
Alias
Association<Association> A_finallyBlock_exceptionHandler
Association End
Class<Class> ExceptionHandler
Datatype
Default
Default Value
Is Compositetrue
Is Derivedfalse
Is Derived Unionfalse
Is Leaffalse
Is Orderedfalse
Is Read Onlyfalse
Is Staticfalse
Is Uniquetrue
Keywords
Lower0
Lower Value<Literal Integer> 0
Multiplicity0..1
NamefinallyBlock
Name Expression
Namespace<Class> ExceptionHandler
Opposite
Owned Template Signature
Owner<Class> ExceptionHandler
Owning Association
Owning Template Parameter
Qualified Namegast::statements::ExceptionHandler::finallyBlock
Stereotype
Template Parameter
Type<Class> BlockStatement
Upper1
Upper Value<Literal Unlimited Natural> 1
VisibilityPublic


 guardedBlock
Public <Class> BlockStatement guardedBlock

This property represents a reference to the block statement which is guarded by this exception handler.

Eigenschaften:

AggregationComposite
Alias
Association<Association> A_guardedBlock_exceptionHandler
Association End
Class<Class> ExceptionHandler
Datatype
Default
Default Value
Is Compositetrue
Is Derivedfalse
Is Derived Unionfalse
Is Leaffalse
Is Orderedfalse
Is Read Onlyfalse
Is Staticfalse
Is Uniquetrue
Keywords
Lower1
Lower Value<Literal Integer> 1
Multiplicity1
NameguardedBlock
Name Expression
Namespace<Class> ExceptionHandler
Opposite
Owned Template Signature
Owner<Class> ExceptionHandler
Owning Association
Owning Template Parameter
Qualified Namegast::statements::ExceptionHandler::guardedBlock
Stereotype
Template Parameter
Type<Class> BlockStatement
Upper1
Upper Value<Literal Unlimited Natural> 1
VisibilityPublic