New (CharacterTranslationException constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Template:CharacterTranslationException:New subtitle}}
#REDIRECT [[CharacterTranslationException class#New constructor|New constructor]]
Each argument to <var>New</var> sets the value of the corresponding property of the newly constructed <var>CharacterTranslationException</var> object.
[[Category:CharacterTranslationException methods|New constructor]]
==Syntax==
{{Template:CharacterTranslationException:New syntax}}
===Syntax terms===
<table class="syntaxTable">
<tr><th>%characterTranslationException</th>
<td>A reference to the newly created instance of a <var>[[CharacterTranslationException_class|CharacterTranslationException]]</var> object.
</td></tr>
<tr><th><var>Reason</var></th>
<td><var>Reason</var> is a <b><i>non-</i></b>optional, [[Methods#Named parameters|name required]] parameter specifying the value to be assigned to the exception object's <var>[[Reason (CharacterTranslationException property)|Reason]]</var> property.
<p>As described for the <var>Reason]]</var> property, the <var>translationExceptionReason</var> enumeration values are <var>InvalidEncoding</var>, <var>InvalidCharacterReference</var>, and <var>UntranslatableCharacter</var>.</p></td></tr>
<tr><th><var>HexValue</var></th>
<td>This  name required parameter specifies the string value (<var class="term">string</var>) to be assigned to the object's <var>[[HexValue_(CharacterTranslationException_property)|HexValue]]</var> property.
</td></tr>
<tr><th><var>BytePosition</var></th>
<td>This  name required parameter specifies the numeric value (<var class="term">number</var>) to be assigned to the object's <var>[[BytePosition_(CharacterTranslationException_property)|BytePosition]]</var> property.
</td></tr>
<tr><th><var>CharacterPosition</var></th>
<td>This  name required parameter specifies the numeric value (<var class="term">number</var>) to be assigned to the object's <var>[[CharacterPosition_(CharacterTranslationException_property)|CharacterPosition]]</var> property.
</td></tr>
<tr><th><var>Description</var></th>
<td>This name required parameter specifies the string value (<var class="term">string</var>) to be assigned to the object's <var>[[Description_(CharacterTranslationException_property)|Description]]</var> property.
</td></tr>
</table>
 
==See also==
{{Template:CharacterTranslationException:New footer}}

Latest revision as of 23:33, 9 May 2011