Cross-Platform C++

ot::io
class MalformedInputException

#include "ot/io/MalformedInputException.h"

ot::io::CharacterCodingException ot::io::IOException ot::Exception Thrown when an InputStreamReader, that has been configured to abort when it encounters encoding errors, reads a malformed byte sequence.

See also:
CodeConverter



Constructor/Destructor Summary
MalformedInputException(const String& message, CodeConverter* pDecoder)
         Constructs a MalformedInputException with a detail message and a decoder.
MalformedInputException(const Byte* pStart, size_t len, CodeConverter* pDecoder)
         Constructs a MalformedInputException with a Byte array 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, toString

Constructor/Destructor Detail

MalformedInputException

 MalformedInputException(const String& message,
                         CodeConverter* pDecoder)
Constructs a MalformedInputException with a detail message and a decoder.

Parameters:
message - the detail message
pDecoder - the CodeConverter giving rise to the exception

MalformedInputException

 MalformedInputException(const Byte* pStart,
                         size_t len,
                         CodeConverter* pDecoder)
Constructs a MalformedInputException with a Byte array and a decoder.

Parameters:
pStart - pointer to the start of the array of badly encoded bytes
len - length of the array
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-2003 ElCel Technology   Trademark Acknowledgements