CodePorting.Translator.Cs2Cpp.Framework
System::Text::Details_DecoderFallbackException Class Reference

Exception thrown by DecoderExceptionFallback when decoding fails. Never create instances of this class manually. Use the DecoderFallbackException class instead. Never wrap the DecoderFallbackException class instances into System::SmartPtr. More...

#include <decoder_fallback_exception.h>

Inherits Details_ArgumentException.

Public Member Functions

System::ArrayPtr< uint8_t > get_BytesUnknown ()
 Gets byte array that triggered error. More...
 
int get_Index ()
 Gets position of byte that triggered error in input array. More...
 

Protected Member Functions

 Details_DecoderFallbackException ()
 Default constructor. More...
 
 Details_DecoderFallbackException (const System::String &message)
 Constructor. More...
 
 Details_DecoderFallbackException (const System::String &message, const ArrayPtr< uint8_t > &bytesUnknown, int index)
 Constructor. More...
 
 Details_DecoderFallbackException (const System::String &message, const System::Exception &innerException)
 Constructor. More...
 
void DoThrow (const System::ExceptionPtr &self) const override
 Throws exception instance wrapped by exception wrapper. More...
 

Protected Attributes

System::ArrayPtr< uint8_t > m_bytesUnknown
 Array of bytes that triggered decoder error. More...
 
int m_index = 0
 Index of byte that triggered error in input array. More...
 

Detailed Description

Exception thrown by DecoderExceptionFallback when decoding fails. Never create instances of this class manually. Use the DecoderFallbackException class instead. Never wrap the DecoderFallbackException class instances into System::SmartPtr.

Constructor & Destructor Documentation

◆ Details_DecoderFallbackException() [1/4]

System::Text::Details_DecoderFallbackException::Details_DecoderFallbackException ( )
protected

Default constructor.

◆ Details_DecoderFallbackException() [2/4]

System::Text::Details_DecoderFallbackException::Details_DecoderFallbackException ( const System::String message)
protected

Constructor.

Parameters
messageMessage to throw.

◆ Details_DecoderFallbackException() [3/4]

System::Text::Details_DecoderFallbackException::Details_DecoderFallbackException ( const System::String message,
const ArrayPtr< uint8_t > &  bytesUnknown,
int  index 
)
protected

Constructor.

Parameters
messageMessage to throw.
bytesUnknownArray of bytes which triggered the error.
indexIndex of byte that triggered error.

◆ Details_DecoderFallbackException() [4/4]

System::Text::Details_DecoderFallbackException::Details_DecoderFallbackException ( const System::String message,
const System::Exception innerException 
)
protected

Constructor.

Parameters
messageMessage to throw.
innerExceptionWrapped exception.

Member Function Documentation

◆ DoThrow()

void System::Text::Details_DecoderFallbackException::DoThrow ( const System::ExceptionPtr self) const
overrideprotected

Throws exception instance wrapped by exception wrapper.

Parameters
selfException instance to be thrown.

◆ get_BytesUnknown()

System::ArrayPtr< uint8_t > System::Text::Details_DecoderFallbackException::get_BytesUnknown ( )

Gets byte array that triggered error.

Returns
Byte array that broke decoding.

◆ get_Index()

int System::Text::Details_DecoderFallbackException::get_Index ( )

Gets position of byte that triggered error in input array.

Returns
Index of erroneous byte in input array.

Member Data Documentation

◆ m_bytesUnknown

System::ArrayPtr<uint8_t> System::Text::Details_DecoderFallbackException::m_bytesUnknown
protected

Array of bytes that triggered decoder error.

◆ m_index

int System::Text::Details_DecoderFallbackException::m_index = 0
protected

Index of byte that triggered error in input array.