New (CharacterTranslationException constructor): Difference between revisions
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
{{Template:CharacterTranslationException:New subtitle}} | |||
New | |||
This constructor generates an instance of a CharacterTranslationException exception. | This constructor generates an instance of a CharacterTranslationException exception. | ||
| Line 10: | Line 6: | ||
corresponding names. | corresponding names. | ||
==Syntax== | ==Syntax== | ||
{{Template:CharacterTranslationException:New syntax}} | |||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
| Line 39: | Line 29: | ||
</td></tr></table> | </td></tr></table> | ||
==See also== | |||
{{Template:CharacterTranslationException:New footer}} | |||
Revision as of 20:42, 25 March 2011
Create a new CharacterTranslationException object (CharacterTranslationException class)
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
%characterTranslationException = [%(CharacterTranslationException):]New( Reason= translationExceptionReason, - [HexValue= string], - [BytePosition= number], - [CharacterPosition= number], - [Description= string])
Syntax terms
| %chTransEx | A reference to an instance of a CharacterTranslationException object. |
|---|---|
| Reason=reasonEnum | This name required parameter specifies the value to be assigned to the exception object's Reason property. As described in for the Reason property, the reasonEnum enumeration values are InvalidEncoding, InvalidCharacterReference, and UntranslatableCharacter.
The Reason parameter is not optional. |
| BytePosition=num | This name required parameter specifies the numeric value (num) to be assigned to the object's BytePosition property. |
| CharacterPosition=num | This name required parameter specifies the numeric value (num) to be assigned to the object's CharacterPosition property. |
| Description=string | This name required parameter specifies the string value (string) to be assigned to the object's Description property. |
| HexValue=string | This name required parameter specifies the string value (string) to be assigned to the object's HexValue property. |