Cross-Platform C++

ot::io
class CharacterCodingException

#include "ot/io/CharacterCodingException.h"

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

Method Summary
 RefPtr< CodeConverter > getCodeConverter() const
         Returns a reference to the CodeConverter that gave rise to the exception.
 virtual String getExceptionType() const
         Returns the class name as a String.

Methods inherited from class ot::Exception
getDescription, getLocalizedDescription, getMessage, setMessage, toString

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

Method Detail

getCodeConverter

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


Cross-Platform C++

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

Copyright © 2000-2003 ElCel Technology   Trademark Acknowledgements