InvalidBase64Data class: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (tags and links)
m (yourself)
Line 2: Line 2:
The <var>InvalidBase64Data</var> exception class describes an exception associated with finding non-base64-encoded data where base64-encoded data was expected, usually when decoding base64-encoded data.
The <var>InvalidBase64Data</var> exception class describes an exception associated with finding non-base64-encoded data where base64-encoded data was expected, usually when decoding base64-encoded data.
   
   
To produce an <var>InvalidBase64Data</var> exception, you typically use a User Language <var>[[Throw]]</var> statement with an <var>InvalidBase64Data</var> <var>[[New_(InvalidBase64Data_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>InvalidBase64Data</var> exception with the position set to <code>2</code>:
To produce an <var>InvalidBase64Data</var> exception yourself, you typically use a <var class="product">User Language</var> <var>[[Throw]]</var> statement with an <var>InvalidBase64Data</var> <var>[[New_(InvalidBase64Data_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>InvalidBase64Data</var> exception with the position set to <code>2</code>:
<p class="code">throw %(invalidBase64Data):new(position=2)
<p class="code">throw %(invalidBase64Data):new(position=2)
</p>
</p>

Revision as of 05:14, 22 April 2011

The InvalidBase64Data exception class describes an exception associated with finding non-base64-encoded data where base64-encoded data was expected, usually when decoding base64-encoded data.

To produce an InvalidBase64Data exception yourself, you typically use a User Language Throw statement with an InvalidBase64Data 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 InvalidBase64Data exception with the position set to 2:

throw %(invalidBase64Data):new(position=2)

The methods in this class are listed at "List of InvalidBase64Data methods".