XERCES_CPP_NAMESPACE_BEGIN
/**
* Range operations may throw a DOMRangeException
as specified in
* their method descriptions.
* See also the Document Object Model (DOM) Level 2 Traversal and Range Specification.
* @since DOM Level 2
*/
class CDOM_EXPORT DOMRangeException : public DOMException {
public:
// -----------------------------------------------------------------------
// Class Types
// -----------------------------------------------------------------------
/** @name Public Contants */
//@{
/**
* Enumerators for DOM Range Exceptions
*
*
BAD_BOUNDARYPOINTS_ERR:
* If the boundary-points of a Range do not meet specific requirements.
*
* INVALID_NODE_TYPE_ERR:
* If the container of an boundary-point of a Range is being set to either
* a node of an invalid type or a node with an ancestor of an invalid
* type.
*
* @since DOM Level 2
*/
enum RangeExceptionCode {
BAD_BOUNDARYPOINTS_ERR = 1,
INVALID_NODE_TYPE_ERR = 2
};
//@}
public:
// -----------------------------------------------------------------------
// Constructors
// -----------------------------------------------------------------------
/** @name Constructors */
//@{
/**
* Default constructor for DOMRangeException.
*
*/
DOMRangeException();
/**
* 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
*/
DOMRangeException(RangeExceptionCode code, const XMLCh* message);
/**
* Copy constructor.
*
* @param other The object to be copied.
*/
DOMRangeException(const DOMRangeException &other);
//@}
// -----------------------------------------------------------------------
// Destructors
// -----------------------------------------------------------------------
/** @name Destructor. */
//@{
/**
* Destructor for DOMRangeException.
*
*/
virtual ~DOMRangeException();
//@}
public:
// -----------------------------------------------------------------------
// Class Types
// -----------------------------------------------------------------------
/** @name Public variables */
//@{
/**
* A code value, from the set defined by the RangeExceptionCode enum,
* indicating the type of error that occured.
*
* @since DOM Level 2
*/
RangeExceptionCode code;
//@}
private:
// -----------------------------------------------------------------------
// Unimplemented constructors and operators
// -----------------------------------------------------------------------
DOMRangeException & operator = (const DOMRangeException &);
};
XERCES_CPP_NAMESPACE_END
#endif