CharacterTranslationException class

From m204wiki
Revision as of 22:46, 9 May 2011 by JAL2 (talk | contribs)
Jump to navigation Jump to search

Various methods throw a CharacterTranslationException exception when they encounter character translation problems. To avert request cancellation, you can catch such an exception, optionally catching to an object of this class.

This class is available as of Sirius Mods Version 7.3.

The CharacterTranslationException methods

The following are the available CharacterTranslationException class methods.

MethodDescription
BytePositionPosition of byte at which the exception was thrown
CharacterPositionPosition of character at which the exception was thrown
DescriptionBrief description of the exception
HexValueHexadecimal value of bytes causing the exception
NewCreate a new CharacterTranslationException object
ReasonEnumerated cause of the exception

The methods in the class are described in the subsections that follow. In addition:


BytePosition property

Position of byte at which the exception was thrown (CharacterTranslationException class)

Syntax

%number = characterTranslationException:BytePosition

Syntax terms

%number The position of the byte at which the exception was thrown.
characterTranslationException A reference to an instance of a CharacterTranslationException object.


CharacterPosition property

Description property

HexValueproperty

New constructor

Reason property