Cross-Platform C++

ot::io
class UnmappableCharacterException

#include "ot/io/UnmappableCharacterException.h"

ot::io::CharacterCodingException ot::io::IOException ot::Exception 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 Summary
UnmappableCharacterException(const String& message, CodeConverter* pDecoder)
         Constructs an UnmappableCharacterException with a detail message and a decoder.

Method Summary
 virtual String getExceptionType() const
         Returns the class name as a String.

Methods inherited from class ot::io::CharacterCodingException
getCodeConverter()

Methods inherited from class ot::Exception
getDescription(), getLocalizedDescription(), getMessage(), setMessage(const String&), toString()

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

Method Detail

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()


Cross-Platform C++

Found a bug or missing feature? Please email us at support@elcel.com

Copyright © 2000-2005 ElCel Technology   Trademark Acknowledgements