5.4.2.5.2. Exception

<exception> is a child element of <method> and defines the exception thrown by the method.

Usage

Listing 5.34 <exception/> example
 1<method>
 2        name=""
 3        ...
 4        <exception>
 5            code instruction base
 6
 7            <apicommentline></apicommentline>
 8            <devcommentline></devcommentline>
 9            <import></import>
10            <annotation></annotation>
11            <datatype></datatype>
12        </exception>
13        ...
14</method>

Attributes

Table 5.42 attributes of <exception/>

Name

Details

code instruction base

Loupe S Code instruction base.

Sub elements

Table 5.43 sub elements of <exception/>

Name

Details

Number

apicommentline

Javadoc that is attached to this method.

0 or more

devcommentline

Commentary that is attached to this attribute.

0 or more

import

All library elements specified as ‘import’ are translated as import statements.

0 or more

annotation

Annotation defined for the attribute.

0 or more

datatype

Question S

0 or 1