New (CharacterTranslationException constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
 
(7 intermediate revisions by 2 users 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>Reason</th>
<td><var>Reason</var> is a <b><i>non-</i></b>optional, <var>[[Methods#Named parameters|name required]]</var> 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>HexValue</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>BytePosition</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>CharacterPosition</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>Description</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