MSIR.0977: Difference between revisions

From m204wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:
<li>The target of the Throw statement is an instance of a class other than an exception class, in which case the following message is produced
<li>The target of the Throw statement is an instance of a class other than an exception class, in which case the following message is produced
<p class="code>MSIR.0977: THROW invalid -- object not in an exception class</p>  
<p class="code>MSIR.0977: THROW invalid -- object not in an exception class</p>  
</li>
<li>The Throw statement doesn't not appear within a valid class method, in which case the following message is produced
<p class="code>MSIR.0977: THROW invalid -- not in a method</p>
</li>
</li>
</ul>
</ul>

Revision as of 13:46, 19 June 2018

MSIR.0977  THROW invalid -- token

A Throw statement or block was coded in an invalid context. The following examples are among the texts that might be displayed with this message:

  • The target of the Throw statement isn't an instance of an exception class, in which case the following message is produced

    MSIR.0977: THROW invalid -- value not an object

  • The target of the Throw statement is an instance of a class other than an exception class, in which case the following message is produced

    MSIR.0977: THROW invalid -- object not in an exception class

  • The Throw statement doesn't not appear within a valid class method, in which case the following message is produced

    MSIR.0977: THROW invalid -- not in a method

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