http://xml.apache.org/http://www.apache.org/http://www.w3.org/

Home

Readme
Download
Installation
Build

API Docs
Samples
Schema

FAQs
Programming
Migration

Releases
Bug-Reporting
Feedback

Y2K Compliance
PDF Document

CVS Repository
Mail Archive

API Docs for SAX and DOM
 

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

IDOM_RangeException Class Reference

Encapsulate range related DOM error or warning. More...

#include <IDOM_RangeException.hpp>

Inheritance diagram for IDOM_RangeException

Inheritance graph
[legend]
Collaboration diagram for IDOM_RangeException:

Collaboration graph
[legend]
List of all members.

Public Types

Enumerators for DOM Range Exceptions
enum  RangeExceptionCode { BAD_BOUNDARYPOINTS_ERR = 1, INVALID_NODE_TYPE_ERR = 2 }

Public Methods

Constructors and assignment operator
 IDOM_RangeException ()
 Default constructor for IDOM_RangeException.

 IDOM_RangeException (RangeExceptionCode code,const XMLCh *message)
 Constructor which takes an error code and a message. More...

 IDOM_RangeException (const IDOM_RangeException &other)
 Copy constructor. More...

Destructor.
virtual ~IDOM_RangeException ()
 Destructor for IDOM_RangeException. More...


Public Attributes

Public variables.
RangeExceptionCode code
 A code value, from the set defined by the RangeExceptionCode enum, indicating the type of error that occured.


Detailed Description

Encapsulate range related DOM error or warning.

DOM level 2 implementation.

The DOM will create and throw an instance of IDOM_RangeException when an error condition in range is detected. Exceptions can occur when an application directly manipulates the range elements in DOM document tree that is produced by the parser.

Unlike the other classes in the C++ DOM API, IDOM_RangeException is NOT a reference to an underlying implementation class, and does not provide automatic memory management. Code that catches a DOM Range exception is responsible for deleting it, or otherwise arranging for its disposal.


Member Enumeration Documentation

enum IDOM_RangeException::RangeExceptionCode
 

Enumeration values:
BAD_BOUNDARYPOINTS_ERR  
INVALID_NODE_TYPE_ERR  


Constructor & Destructor Documentation

IDOM_RangeException::IDOM_RangeException ( )
 

Default constructor for IDOM_RangeException.

IDOM_RangeException::IDOM_RangeException ( RangeExceptionCode code,
const XMLCh * message )
 

Constructor which takes an error code and a message.

Parameters:
code   The error code which indicates the exception
message   The string containing the error message

IDOM_RangeException::IDOM_RangeException ( const IDOM_RangeException & other )
 

Copy constructor.

Parameters:
other   The object to be copied.

IDOM_RangeException::~IDOM_RangeException ( ) [virtual]
 

Destructor for IDOM_RangeException.

Applications are responsible for deleting IDOM_RangeException objects that they catch after they have completed their exception processing.


Member Data Documentation

RangeExceptionCode IDOM_RangeException::code
 

A code value, from the set defined by the RangeExceptionCode enum, indicating the type of error that occured.

Reimplemented from IDOM_DOMException.


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


Copyright © 2000 The Apache Software Foundation. All Rights Reserved.