New (CharacterTranslationException constructor): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Template:CharacterTranslationException:New subtitle}}
#REDIRECT [[CharacterTranslationException class#New constructor|New constructor]]
 
[[Category:CharacterTranslationException methods|New constructor]]
This constructor generates an instance of a CharacterTranslationException exception.
As shown in the syntax that follows,
the New method arguments set the values of the properties of the class that have the
corresponding names.
==Syntax==
{{Template:CharacterTranslationException:New syntax}}
===Syntax terms===
<table class="syntaxTable">
<tr><th>%chTransEx</th>
<td>A reference to an instance of a CharacterTranslationException object.
</td></tr>
<tr><th>Reason=reasonEnum</th>
<td>This name required parameter specifies the value to be assigned to the exception object's <var>[[Reason (CharacterTranslationException property)|Reason]]</var> property. As described in for the <var>Reason</var> property, the ''reasonEnum'' enumeration values are <code>InvalidEncoding</code>, <code>InvalidCharacterReference</code>, and <code>UntranslatableCharacter</code>.
The <var>Reason</var> parameter is '''not''' optional.
</td></tr>
<tr><th>BytePosition=num</th>
<td>This name required parameter specifies the numeric value (''num'') to be assigned to the object's BytePosition property.
</td></tr>
<tr><th>CharacterPosition=num</th>
<td>This name required parameter specifies the numeric value (''num'') to be assigned to the object's CharacterPosition property.
</td></tr>
<tr><th>Description=string</th>
<td>This name required parameter specifies the string value (''string'') to be assigned to the object's Description property.
</td></tr>
<tr><th>HexValue=string</th>
<td>This name required parameter specifies the string value (''string'') to be assigned to the object's HexValue property.
 
</td></tr></table>
==See also==
{{Template:CharacterTranslationException:New footer}}

Latest revision as of 23:33, 9 May 2011