MSIR.0973

From m204wiki
Revision as of 16:24, 31 May 2018 by JAL (talk | contribs) (mention QA test for this msg)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

MSIR.0973  THROWS invalid -- token

A Throws clause was coded in an invalid context. The following examples are amongst the possibles texts that can be displayed with this message:

  • A method with the special name OnThrow or OnUncaught was coded with the Throws clause. This is not allowed, since it causes a loop in exception handling. This condition produces the following message:

    MSIR.0973: THROWS invalid -- OnThrow/OnUncaught don't allow THROWS

  • A Throws clause was coded specifying duplicate exception classes. This condition produces the following message:

    MSIR.0973: THROWS invalid -- duplicate thrown class

  • A Throws clause specifies a non-exception class. This produces the following message:

    MSIR.0973: THROWS invalid -- class classname not an exception class

  • A Throws clause specifies a base exception class, followed by an extension of the base class. But this order is not allowed. You may specify the extension followed by the base class, or the base class alone, or the extension class alone, but not base followed by extension. The following message is produced:

    MSIR.0973: THROWS invalid -- base class listed before extension

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