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

Exception thrown by EncoderExceptionFallback when encoding fails. Never create instances of this class manually. Use the EncoderFallbackException class instead. Never wrap the EncoderFallbackException class instances into System::SmartPtr. More...

#include <encoder_fallback_exception.h>

Inherits Details_ArgumentException.

Public Member Functions

char_t get_CharUnknown ()
 Gets character that triggered error. More...
 
char_t get_CharUnknownHigh ()
 Gets high character of pair that triggered error. More...
 
char_t get_CharUnknownLow ()
 Gets low character of pair that triggered error. More...
 
int get_Index ()
 Gets position of character that triggered error in input array. More...
 

Protected Member Functions

 Details_EncoderFallbackException ()
 Default constructor. More...
 
 Details_EncoderFallbackException (const System::String &message)
 Constructor. More...
 
 Details_EncoderFallbackException (const System::String &message, const System::Exception &innerException)
 Constructor. More...
 
 Details_EncoderFallbackException (const System::String &message, char_t charUnknown, int index)
 Constructor. More...
 
 Details_EncoderFallbackException (const System::String &message, char_t charUnknownHigh, char_t charUnknownLow, int index)
 Constructor. More...
 
void DoThrow (const System::ExceptionPtr &self) const override
 Throws exception instance wrapped by exception wrapper. More...
 

Protected Attributes

char_t m_charUnknown = char_t()
 Unknown character. More...
 
char_t m_charUnknownHigh = char_t()
 High character from unknown pair. More...
 
char_t m_charUnknownLow = char_t()
 Low character from unknown pair. More...
 
int m_index = 0
 Index of character that triggered error in input array. More...
 

Detailed Description

Exception thrown by EncoderExceptionFallback when encoding fails. Never create instances of this class manually. Use the EncoderFallbackException class instead. Never wrap the EncoderFallbackException class instances into System::SmartPtr.

Constructor & Destructor Documentation

◆ Details_EncoderFallbackException() [1/5]

System::Text::Details_EncoderFallbackException::Details_EncoderFallbackException ( )
protected

Default constructor.

◆ Details_EncoderFallbackException() [2/5]

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

Constructor.

Parameters
messageMessage to throw.

◆ Details_EncoderFallbackException() [3/5]

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

Constructor.

Parameters
messageMessage to throw.
innerExceptionWrapped exception.

◆ Details_EncoderFallbackException() [4/5]

System::Text::Details_EncoderFallbackException::Details_EncoderFallbackException ( const System::String message,
char_t  charUnknown,
int  index 
)
protected

Constructor.

Parameters
messageMessage to throw.
charUnknownCharacter which triggered the error.
indexIndex of character that triggered error.

◆ Details_EncoderFallbackException() [5/5]

System::Text::Details_EncoderFallbackException::Details_EncoderFallbackException ( const System::String message,
char_t  charUnknownHigh,
char_t  charUnknownLow,
int  index 
)
protected

Constructor.

Parameters
messageMessage to throw.
charUnknownHighHigh part of surrogate pair that triggered error.
charUnknownLowLow part of surrogate pair that triggered error.
indexIndex of character that triggered error.

Member Function Documentation

◆ DoThrow()

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

Throws exception instance wrapped by exception wrapper.

Parameters
selfException instance to be thrown.

◆ get_CharUnknown()

char_t System::Text::Details_EncoderFallbackException::get_CharUnknown ( )
inline

Gets character that triggered error.

Returns
Character that broke encoding.

◆ get_CharUnknownHigh()

char_t System::Text::Details_EncoderFallbackException::get_CharUnknownHigh ( )
inline

Gets high character of pair that triggered error.

Returns
High character from the pair that broke encoding.

◆ get_CharUnknownLow()

char_t System::Text::Details_EncoderFallbackException::get_CharUnknownLow ( )
inline

Gets low character of pair that triggered error.

Returns
Low character from the pair that broke encoding.

◆ get_Index()

int System::Text::Details_EncoderFallbackException::get_Index ( )
inline

Gets position of character that triggered error in input array.

Returns
Index of erroneous character in input array.

Member Data Documentation

◆ m_charUnknown

char_t System::Text::Details_EncoderFallbackException::m_charUnknown = char_t()
protected

Unknown character.

◆ m_charUnknownHigh

char_t System::Text::Details_EncoderFallbackException::m_charUnknownHigh = char_t()
protected

High character from unknown pair.

◆ m_charUnknownLow

char_t System::Text::Details_EncoderFallbackException::m_charUnknownLow = char_t()
protected

Low character from unknown pair.

◆ m_index

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

Index of character that triggered error in input array.