OW_NAMESPACE::XMLParseException Class Reference

#include <OW_XMLParseException.hpp>

Inheritance diagram for OW_NAMESPACE::XMLParseException:

Inheritance graph
[legend]
Collaboration diagram for OW_NAMESPACE::XMLParseException:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Code {
  BAD_START_TAG = 1, BAD_END_TAG, BAD_ATTRIBUTE_NAME, EXPECTED_EQUAL_SIGN,
  BAD_ATTRIBUTE_VALUE, MINUS_MINUS_IN_COMMENT, UNTERMINATED_COMMENT, UNTERMINATED_CDATA,
  UNTERMINATED_DOCTYPE, TOO_MANY_ATTRIBUTES, MALFORMED_REFERENCE, EXPECTED_COMMENT_OR_CDATA,
  START_END_MISMATCH, UNCLOSED_TAGS, MULTIPLE_ROOTS, VALIDATION_ERROR,
  SEMANTIC_ERROR
}

Public Member Functions

 XMLParseException (const char *file, unsigned int line, Code code, const char *msg, unsigned int xmlline=0)
XMLParseException::Code getCode () const
virtual XMLParseExceptionclone () const throw ()
 Make a copy of this exception object.
virtual ~XMLParseException () throw ()
virtual const char * type () const
 Returns a string representing the concrete type.

Private Attributes

Code _code

Detailed Description

Definition at line 43 of file OW_XMLParseException.hpp.


Member Enumeration Documentation

enum OW_NAMESPACE::XMLParseException::Code
 

Enumerator:
BAD_START_TAG 
BAD_END_TAG 
BAD_ATTRIBUTE_NAME 
EXPECTED_EQUAL_SIGN 
BAD_ATTRIBUTE_VALUE 
MINUS_MINUS_IN_COMMENT 
UNTERMINATED_COMMENT 
UNTERMINATED_CDATA 
UNTERMINATED_DOCTYPE 
TOO_MANY_ATTRIBUTES 
MALFORMED_REFERENCE 
EXPECTED_COMMENT_OR_CDATA 
START_END_MISMATCH 
UNCLOSED_TAGS 
MULTIPLE_ROOTS 
VALIDATION_ERROR 
SEMANTIC_ERROR 

Definition at line 46 of file OW_XMLParseException.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::XMLParseException::XMLParseException const char *  file,
unsigned int  line,
Code  code,
const char *  msg,
unsigned int  xmlline = 0
 

Definition at line 69 of file OW_XMLParseException.cpp.

Referenced by clone().

OW_NAMESPACE::XMLParseException::~XMLParseException  )  throw () [virtual]
 

Definition at line 88 of file OW_XMLParseException.cpp.


Member Function Documentation

XMLParseException * OW_NAMESPACE::XMLParseException::clone  )  const throw () [virtual]
 

Make a copy of this exception object.

If allocation fails, return 0. Subclasses need to override this function. This function must not throw. Here is an example of how to implement this in a derived class:

virtual DerivedException* clone() const { return new(std::nothrow) DerivedException(*this); }

Reimplemented from OW_NAMESPACE::Exception.

Definition at line 82 of file OW_XMLParseException.cpp.

References XMLParseException().

XMLParseException::Code OW_NAMESPACE::XMLParseException::getCode  )  const [inline]
 

Definition at line 72 of file OW_XMLParseException.hpp.

const char * OW_NAMESPACE::XMLParseException::type  )  const [virtual]
 

Returns a string representing the concrete type.

e.g. "SocketException". Will not return 0. This function will not throw. Derived class implementations must not throw.

Reimplemented from OW_NAMESPACE::Exception.

Definition at line 94 of file OW_XMLParseException.cpp.


Member Data Documentation

Code OW_NAMESPACE::XMLParseException::_code [private]
 

Definition at line 81 of file OW_XMLParseException.hpp.


The documentation for this class was generated from the following files:
Generated on Thu Feb 9 09:17:10 2006 for openwbem by  doxygen 1.4.6