ML Reference
ml::PersistenceStreamException Class Reference

This class represents the exceptions that can be thrown while reading from or writing to the persistence stream. More...

#include <mlAbstractPersistenceStream.h>

Inheritance diagram for ml::PersistenceStreamException:
ml::PersistenceStreamFormatException ml::PersistenceStreamInternalError ml::PersistenceStreamIOException

List of all members.

Public Types

enum  ErrorType { IOError, FormatError, InternalError }
 sub types of this exception More...

Public Member Functions

virtual ~PersistenceStreamException ()
ErrorType getErrorType () const
 get exception sub-type
virtual std::string getMessage () const
 get error message

Protected Member Functions

 PersistenceStreamException (ErrorType type, const std::string &msg)
 you shouldn't create instances of the base class...

Protected Attributes

ErrorType _type
std::string _msg

Detailed Description

This class represents the exceptions that can be thrown while reading from or writing to the persistence stream.

Definition at line 383 of file mlAbstractPersistenceStream.h.


Member Enumeration Documentation

sub types of this exception

Enumerator:
IOError 
FormatError 
InternalError 

Definition at line 387 of file mlAbstractPersistenceStream.h.


Constructor & Destructor Documentation

virtual ml::PersistenceStreamException::~PersistenceStreamException ( ) [inline, virtual]

Definition at line 393 of file mlAbstractPersistenceStream.h.

ml::PersistenceStreamException::PersistenceStreamException ( ErrorType  type,
const std::string &  msg 
) [inline, protected]

you shouldn't create instances of the base class...

Definition at line 403 of file mlAbstractPersistenceStream.h.


Member Function Documentation

ErrorType ml::PersistenceStreamException::getErrorType ( ) const [inline]

get exception sub-type

Definition at line 396 of file mlAbstractPersistenceStream.h.

virtual std::string ml::PersistenceStreamException::getMessage ( ) const [inline, virtual]

get error message

Definition at line 399 of file mlAbstractPersistenceStream.h.


Member Data Documentation

std::string ml::PersistenceStreamException::_msg [protected]

Definition at line 406 of file mlAbstractPersistenceStream.h.


The documentation for this class was generated from the following file: