New (CharacterTranslationException constructor)

From m204wiki
Revision as of 02:15, 6 January 2011 by Dme (talk | contribs) (Created page with "<span style="font-size:120%; color:black"><b><section begin=dpl_desc/><section end=dpl_desc/></b></span> New constructor <!--DP...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<section begin=dpl_desc/><section end=dpl_desc/>

New is a member of the CharacterTranslationException exception 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

  [%chTransEx =] [(CharacterTranslationException):]     -
                   New (  Reason = reasonEnum,          -
                       [, BytePosition = num]           -
                       [, CharacterPosition = num]      -
                       [, Description =  string]        -
                       [, HexValue = 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 "Reason", 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.