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. * */ class CDOM_EXPORT IDOM_RangeException : public IDOM_DOMException { public: /** @name Enumerators for DOM Range Exceptions */ //@{ enum RangeExceptionCode { BAD_BOUNDARYPOINTS_ERR = 1, INVALID_NODE_TYPE_ERR = 2 }; //@} public: /** @name Constructors and assignment operator */ //@{ /** * Default constructor for IDOM_RangeException. * */ IDOM_RangeException(); /** * Constructor which takes an error code and a message. * * @param code The error code which indicates the exception * @param message The string containing the error message */ IDOM_RangeException(RangeExceptionCode code, const XMLCh* message); /** * Copy constructor. * * @param other The object to be copied. */ IDOM_RangeException(const IDOM_RangeException &other); //@} /** @name Destructor. */ //@{ /** * Destructor for IDOM_RangeException. Applications are responsible * for deleting IDOM_RangeException objects that they catch after they * have completed their exception processing. * */ virtual ~IDOM_RangeException(); //@} /** @name Public variables. */ //@{ /** * A code value, from the set defined by the RangeExceptionCode enum, * indicating the type of error that occured. */ RangeExceptionCode code; //@} }; #endif