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.
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.
◆ Details_EncoderFallbackException() [1/5]
System::Text::Details_EncoderFallbackException::Details_EncoderFallbackException |
( |
| ) |
|
|
protected |
◆ Details_EncoderFallbackException() [2/5]
System::Text::Details_EncoderFallbackException::Details_EncoderFallbackException |
( |
const System::String & |
message | ) |
|
|
protected |
◆ Details_EncoderFallbackException() [3/5]
System::Text::Details_EncoderFallbackException::Details_EncoderFallbackException |
( |
const System::String & |
message, |
|
|
const System::Exception & |
innerException |
|
) |
| |
|
protected |
Constructor.
- Parameters
-
message | Message to throw. |
innerException | Wrapped exception. |
◆ Details_EncoderFallbackException() [4/5]
System::Text::Details_EncoderFallbackException::Details_EncoderFallbackException |
( |
const System::String & |
message, |
|
|
char_t |
charUnknown, |
|
|
int |
index |
|
) |
| |
|
protected |
Constructor.
- Parameters
-
message | Message to throw. |
charUnknown | Character which triggered the error. |
index | Index 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
-
message | Message to throw. |
charUnknownHigh | High part of surrogate pair that triggered error. |
charUnknownLow | Low part of surrogate pair that triggered error. |
index | Index of character that triggered error. |
◆ DoThrow()
void System::Text::Details_EncoderFallbackException::DoThrow |
( |
const System::ExceptionPtr & |
self | ) |
const |
|
overrideprotected |
Throws exception instance wrapped by exception wrapper.
- Parameters
-
self | Exception 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.
◆ m_charUnknown
char_t System::Text::Details_EncoderFallbackException::m_charUnknown = char_t() |
|
protected |
◆ 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.