MSIR.0982: Difference between revisions

From m204wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:
<li>The On method is defined as a method type other than a subroutine, in which case the following message is produced:
<li>The On method is defined as a method type other than a subroutine, in which case the following message is produced:
<p class="code>MSIR.0982: Exception On method must be a Subroutine</p>
<p class="code>MSIR.0982: Exception On method must be a Subroutine</p>
</li>
<li>The On method is incorrectly defined as overridable, in which case the following message is produced:
<p class="code>MSIR.0982: Exception On method cannot be explicitly overridable</p>
</li>
</li>
</ul>
</ul>

Revision as of 12:34, 5 July 2018

MSIR.0982  Exception On method token

This error is produced through incorrect of the special case exception methods onThrow and onUncaught. The following examples are amongst the texts that might appear with this message:

  • The On method is defined as a method type other than a subroutine, in which case the following message is produced:

    MSIR.0982: Exception On method must be a Subroutine

  • The On method is incorrectly defined as overridable, in which case the following message is produced:

    MSIR.0982: Exception On method cannot be explicitly overridable

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