DecoderExceptionFallbackBuffer: Fallback

Fallback

Throws DecoderFallbackException when the input byte sequence cannot be decoded. The nominal return value is not used.



 Public Function Fallback(
	  ByRef BytesUnknown ( ) As Byte,
	  ByVal Index As Long ) As Boolean

Parameters

BytesUnknown
[ByRef] Byte. An input array of bytes.
Index
[ByVal] Long. The index position of a byte in the input.

Return Values

Boolean -  None. No value is returned because the Fallback method always throws an exception.

Exceptions

Exception Condition
DecoderFallbackExceptionThis method always throws an exception that reports the value and index position of the input byte that cannot be decoded.

Remarks

The GetBytes and Convert methods call Fallback if they encounter an unknown byte in their input. In response, the Fallback method always throws DecoderFallbackException and displays the input data. The Fallback method nominally indicates whether an exception is thrown if an input byte sequence cannot be decoded.

See Also

Project CorLib Overview

Class DecoderExceptionFallbackBuffer Overview