Plus  - Minimal XML for C++ (Version 0.9.2) Giancarlo Niccolai
Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MXML::Error Class Reference

#include <mxml_error.h>

Inheritance diagram for MXML::Error:

Inheritance graph
[legend]
Collaboration diagram for MXML::Error:

Collaboration graph
[legend]
List of all members.

Public Types

enum  codes {
  errNone = 0, errIo, errNomem, errOutChar,
  errInvalidNode, errInvalidAtt, errMalformedAtt, errInvalidChar,
  errUnclosed, errUnclosedEntity, errWrongEntity, errChildNotFound,
  errAttrNotFound, errHyerarcy, errCommentInvalid
}
 Error codes This define what kind of error happened while decoding the XML document. More...


Public Member Functions

virtual const errorType type () const=0
const std::string description ()

Protected Member Functions

 Error (const codes code, const Element *generator)

Private Attributes

int m_code
const Elementm_generator

Friends

std::ostream & operator<< (std::ostream &stream, Error &err)
 Serializes the error.


Member Enumeration Documentation

enum MXML::Error::codes
 

Error codes This define what kind of error happened while decoding the XML document.

Enumeration values:
errNone 
errIo 
errNomem 
errOutChar 
errInvalidNode 
errInvalidAtt 
errMalformedAtt 
errInvalidChar 
errUnclosed 
errUnclosedEntity 
errWrongEntity 
errChildNotFound 
errAttrNotFound 
errHyerarcy 
errCommentInvalid 


Constructor & Destructor Documentation

MXML::Error::Error const codes  code,
const Element generator
[inline, protected]
 


Member Function Documentation

const std::string MXML::Error::description  ) 
 

virtual const errorType MXML::Error::type  )  const [pure virtual]
 

Implemented in MXML::MalformedError, MXML::IOError, and MXML::NotFoundError.


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  stream,
Error err
[friend]
 

Serializes the error.

Use this operator to display what kind of error has happened


Member Data Documentation

int MXML::Error::m_code [private]
 

const Element* MXML::Error::m_generator [private]
 


The documentation for this class was generated from the following files:
Generated on Sun Apr 11 02:08:22 2004 for Mxml Plus by doxygen 1.3.5