New (CharacterTranslationException constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
 
(3 intermediate revisions 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 in for the <var>[[Reason_(CharacterTranslationException_property)#Usage_notes|Reason]]</var> property, the <var>translationExceptionReason</var> enumeration values are <code>InvalidEncoding</code>, <code>InvalidCharacterReference</code>, and <code>UntranslatableCharacter</code>.</p></td></tr>
<tr><th><var>HexValue</var></th>
<td>This <var>name-required</var> parameter specifies the string value (<var class="term">%string</var>) to be assigned to the object's <var class="term">[[HexValue_(CharacterTranslationException_property)|HexValue]]</var> property.
</td></tr>
<tr><th><var>BytePosition</var></th>
<td>This <var>name-required</var> parameter specifies the numeric value (<var class="term">%number</var>) to be assigned to the object's <var class="term">[[BytePosition_(CharacterTranslationException_property)|BytePosition]]</var> property.
</td></tr>
<tr><th><var>CharacterPosition</var></th>
<td>This <var>name-required</var> parameter specifies the numeric value (<var class="term">%number</var>) to be assigned to the object's <var class="term">[[CharacterPosition_(CharacterTranslationException_property)|CharacterPosition]]</var> property.
</td></tr>
<tr><th><var>Description</var></th>
<td>This <var>name-required</var> parameter specifies the string value (<var class="term">%string</var>) to be assigned to the object's <var class="term">[[Description_(CharacterTranslationException_property)|Description]]</var> property.
</td></tr>
</table>
 
==See also==
{{Template:CharacterTranslationException:New footer}}

Latest revision as of 23:33, 9 May 2011