MSIR.0973: Difference between revisions

From m204wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
<p class="code>MSIR.0973: THROWS invalid -- OnThrow/OnUncaught don't allow THROWS</p>
<p class="code>MSIR.0973: THROWS invalid -- OnThrow/OnUncaught don't allow THROWS</p>
</ul>
</ul>
<li>a Throws clause has been coded specifying duplicate exceptions classes. This condition produces the message
<p class="code>MSIR.0973: THROWS invalid -- duplicate thrown class </p> 
<p>
<p>
<b>Response:</b>
<b>Response:</b>
</p>
</p>
{{Template:MSIR.0973 footer}}
{{Template:MSIR.0973 footer}}

Revision as of 14:09, 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

    Response:

    Message attributes:

    RETCODEO=0Sets online return code
    RETCODEB=4Sets batch (single user) return code
    CLASS=EError class; the message can be suppressed with the X'04' bit setting of the MSGCTL parameter
    AUDITERWrites the message with line type ER to the audit trail
    COUNTIncrements the error count (ERCNT) parameter
    ECHODisplays the line that caused the error

    Back to list of messages