InvalidHexData class: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
m (tags and edits) |
||
Line 1: | Line 1: | ||
<!-- InvalidHexData class --> | <!-- InvalidHexData class --> | ||
The InvalidHexData exception class describes an exception associated with finding | The <var>InvalidHexData</var> exception class describes an exception associated with finding non-hexadecimal data where hexadecimal data was expected, usually when translating the hexadecimal data to something else. | ||
non-hexadecimal data where hexadecimal data was expected, usually | |||
when translating the hexadecimal data to something else. | |||
To produce an InvalidHexData exception, you typically use a User Language Throw | To produce an <var>InvalidHexData</var> exception yourself, you typically use a <var class="product">User Language</var> <var>[[Throw]]</var> statement with an <var>InvalidHexData</var> <var>[[New_(InvalidHexData_constructor)|New]]</var> constructor. This statement must be issued from within a method, and it can only be caught by the code that calls the method. For example, the following statement throws an <var>InvalidHexData</var> exception with the position set to <code>1</code>: | ||
statement with an InvalidHexData New constructor. | <p class="code">throw %(invalidHexData):new(position=1) | ||
This statement must be issued from within a method, and it can only be | |||
caught by the code that calls the method. | |||
For example, | |||
the following statement throws an InvalidHexData exception with the position | |||
set to <code>1</code>: | |||
<p class="code"> throw %(invalidHexData):new(position=1) | |||
</p> | </p> | ||
The methods in this class are listed at "[[List of InvalidHexData | The methods in this class are listed at "[[List_of_InvalidHexData_methods|List of InvalidHexData methods]]". | ||
methods]]". | |||
[[Category:System exception classes]] | [[Category:System exception classes]] |
Revision as of 05:34, 22 April 2011
The InvalidHexData exception class describes an exception associated with finding non-hexadecimal data where hexadecimal data was expected, usually when translating the hexadecimal data to something else.
To produce an InvalidHexData exception yourself, you typically use a User Language Throw statement with an InvalidHexData New constructor. This statement must be issued from within a method, and it can only be caught by the code that calls the method. For example, the following statement throws an InvalidHexData exception with the position set to 1
:
throw %(invalidHexData):new(position=1)
The methods in this class are listed at "List of InvalidHexData methods".