MSIR.0973: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
<li> A Throws clause specifies a class name for a non-exception class. This produces the message | <li> A Throws clause specifies a class name for a non-exception class. This produces the message | ||
<p class="code>MSIR.0973: THROWS invalid -- class ''classname'' not an exception class</p> | <p class="code>MSIR.0973: THROWS invalid -- class ''classname'' not an exception class</p> | ||
<li> A Throws clause specifies a base exception class, followed by its extension class name. In this case, either the base class can be specified, or the extension, or the extension followed by the base class, but not base followed by extension. Here the following message is produced | |||
<p class="code>MSIR.0973: THROWS invalid -- base class listed before extension</p> | |||
</ul> | </ul> | ||
<p> | <p> |
Revision as of 15:04, 30 May 2018
MSIR.0973 THROWS invalid -- token
A Throws clause has been coded in an invalid context. There are a few scenarios where this message might be produced..
- A method with the special name of either OnThrow or OnUncaught has been coded with the Throws clause, which is not allowed as it would cause a loop in exception handling. This would produce the message
MSIR.0973: THROWS invalid -- OnThrow/OnUncaught don't allow THROWS
- a Throws clause has been coded specifying duplicate exceptions classes. This condition produces the message
MSIR.0973: THROWS invalid -- duplicate thrown class
- A Throws clause specifies a class name for a non-exception class. This produces the message
MSIR.0973: THROWS invalid -- class classname not an exception class
- A Throws clause specifies a base exception class, followed by its extension class name. In this case, either the base class can be specified, or the extension, or the extension followed by the base class, but not base followed by extension. Here the following message is produced
MSIR.0973: THROWS invalid -- base class listed before extension
Response:
Message attributes:
RETCODEO=0 | Sets online return code |
---|---|
RETCODEB=4 | Sets batch (single user) return code |
CLASS=E | Error class; the message can be suppressed with the X'04' bit setting of the MSGCTL parameter |
AUDITER | Writes the message with line type ER to the audit trail |
COUNT | Increments the error count (ERCNT) parameter |
ECHO | Displays the line that caused the error |