ot::io
class UnmappableCharacterException
#include "ot/io/UnmappableCharacterException.h"
Thrown during an I/O operation when a Unicode character cannot be encoded into the target encoding.
This exception may be thrown by an OutputStreamWriter or InputStreamReader which is using a CodeConverter that has been configured to abort when it encounters unmappable or unsupported Unicode characters.
In OpenTop configurations which support the entire Unicode 2 range of code-points (U+0000-U+10FFFF) this exception is unlikely to be thrown during input operations, but in the LATIN-1 configuration (where the OT_LATIN1 preprocessor macro is specified), this exception may be thrown when a Unicode character above U+00FE is encountered within the input byte sequence.
- See also:
-
CodeConverter
| Constructor/Destructor Detail |
UnmappableCharacterException
UnmappableCharacterException(const String& message,
CodeConverter* pDecoder)
-
Constructs an UnmappableCharacterException with a detail message and a decoder.
- Parameters:
message -
the detail message
pDecoder -
the CodeConverter giving rise to the exception
getExceptionType
virtual String getExceptionType() const
-
Returns the class name as a String.
This method should be overridden in all derived classes to return the name of the derived class.
- See also:
-
getDescription()
Found a bug or missing feature? Please email us at support@elcel.com