MSIR.0808 New must be disallowed in Public block to be a Private constructor: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
(Automatically generated page update)
Line 1: Line 1:
A <var>New</var> constructor was declared in a <var>Private</var> block but <var>New</var> had not been disallowed in the <var>Public</var> block. If the intent is to really have a private New constructor, specify a <var>Disallow New</var> in the Public block to let users of the class know that the <var>New</var> constructor is not available outside the class. If the <var>Disallow New</var> is already in the Public block, make sure the Public block is declared before the Private. If the intent is not to have a private <var>New</var> constructor, the constructor declaration should be moved to the <var>Public</var> block.
A <var>New</var> constructor was declared in a <var>Private</var> block but <var>New</var> had not been disallowed in the <var>Public</var> block. If the intent is to really have a private New constructor, specify a <var>Disallow New</var> in the Public block to let users of the class know that the <var>New</var> constructor is not available outside the class. If the <var>Disallow New</var> is already in the Public block, make sure the Public block is declared before the Private. If the intent is not to have a private <var>New</var> constructor, the constructor declaration should be moved to the <var>Public</var> block.


{{Template:MSIR.0808 footer}}
[[Category:Sirius Mods messages]] [[Category:MSIR.0800 - MSIR.0999]]
[[Category:Sirius Mods messages]] [[Category:MSIR.0800 - MSIR.0999]]

Revision as of 22:09, 11 July 2016

A New constructor was declared in a Private block but New had not been disallowed in the Public block. If the intent is to really have a private New constructor, specify a Disallow New in the Public block to let users of the class know that the New constructor is not available outside the class. If the Disallow New is already in the Public block, make sure the Public block is declared before the Private. If the intent is not to have a private New constructor, the constructor declaration should be moved to the Public block.


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