ot::io
class CharacterCodingException
#include "ot/io/CharacterCodingException.h"
Base class for encoding exceptions.
Derived exceptions are thrown when an InputStreamReader reads a malformed byte sequence or when an OutputStreamWriter attempts to write a Unicode character that cannot be mapped into the output encoding.
Constructor/Destructor Detail |
CharacterCodingException
CharacterCodingException(CodeConverter* pDecoder)
-
Constructs a CharacterCodingException with a decoder.
- Parameters:
pDecoder
-
the CodeConverter giving rise to the exception
CharacterCodingException
CharacterCodingException(const String& message,
CodeConverter* pDecoder)
-
Constructs a CharacterCodingException with a detail message and a decoder.
- Parameters:
message
-
the detail message
pDecoder
-
the CodeConverter giving rise to the exception
getCodeConverter
RefPtr< CodeConverter > getCodeConverter() const
-
Returns a reference to the CodeConverter that gave rise to the exception.
This may be used to change the policy of the CodeConverter before retrying the operation.
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