source: obsolete/trunk/VUT/GtpVisibilityPreprocessor/support/xerces/include/xercesc/dom/DOMRangeException.hpp @ 358

Revision 358, 4.2 KB checked in by bittner, 19 years ago (diff)

xerces added

Line 
1#ifndef DOMRangeException_HEADER_GUARD_
2#define DOMRangeException_HEADER_GUARD_
3
4/*
5 * Copyright 2001-2002,2004 The Apache Software Foundation.
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 *      http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19
20/*
21 * $Id: DOMRangeException.hpp,v 1.7 2004/09/08 13:55:39 peiyongz Exp $
22 */
23
24#include <xercesc/dom/DOMException.hpp>
25
26XERCES_CPP_NAMESPACE_BEGIN
27
28/**
29 * Range operations may throw a <code>DOMRangeException</code> as specified in
30 * their method descriptions.
31 * <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Traversal-Range-20001113'>Document Object Model (DOM) Level 2 Traversal and Range Specification</a>.
32 * @since DOM Level 2
33 */
34
35class CDOM_EXPORT DOMRangeException  : public DOMException {
36public:
37    // -----------------------------------------------------------------------
38    //  Class Types
39    // -----------------------------------------------------------------------
40    /** @name Public Contants */
41    //@{
42    /**
43     * Enumerators for DOM Range Exceptions
44     *
45     * <p><code>BAD_BOUNDARYPOINTS_ERR:</code>
46     * If the boundary-points of a Range do not meet specific requirements.</p>
47     *
48     * <p><code>INVALID_NODE_TYPE_ERR:</code>
49     * If the container of an boundary-point of a Range is being set to either
50     * a node of an invalid type or a node with an ancestor of an invalid
51     * type.</p>
52     *
53     * @since DOM Level 2
54     */
55        enum RangeExceptionCode {
56                BAD_BOUNDARYPOINTS_ERR  = 1,
57                INVALID_NODE_TYPE_ERR   = 2
58        };
59    //@}
60
61public:
62    // -----------------------------------------------------------------------
63    //  Constructors
64    // -----------------------------------------------------------------------
65    /** @name Constructors */
66    //@{
67    /**
68      * Default constructor for DOMRangeException.
69      *
70      */
71    DOMRangeException();
72
73    /**
74      * Constructor which takes an error code and a message.
75      *
76      * @param code The error code which indicates the exception
77      * @param message The string containing the error message
78      * @param memoryManager  The memory manager used to (de)allocate memory
79      */
80    DOMRangeException(
81                            RangeExceptionCode       code
82                    , const XMLCh*                   message
83                    ,       MemoryManager*     const memoryManager
84                     );
85
86    /**
87      * Copy constructor.
88      *
89      * @param other The object to be copied.
90      */
91    DOMRangeException(const DOMRangeException &other);
92    //@}
93
94    // -----------------------------------------------------------------------
95    //  Destructors
96    // -----------------------------------------------------------------------
97    /** @name Destructor. */
98    //@{
99         /**
100          * Destructor for DOMRangeException.
101          *
102          */
103    virtual ~DOMRangeException();
104    //@}
105
106public:
107    // -----------------------------------------------------------------------
108    //  Class Types
109    // -----------------------------------------------------------------------
110    /** @name Public variables */
111    //@{
112         /**
113          * A code value, from the set defined by the RangeExceptionCode enum,
114     * indicating the type of error that occured.
115     *
116     * @since DOM Level 2
117          */
118    RangeExceptionCode   code;
119
120    //@}
121
122private:
123    // -----------------------------------------------------------------------
124    // Unimplemented constructors and operators
125    // -----------------------------------------------------------------------
126    DOMRangeException & operator = (const DOMRangeException &);
127};
128
129XERCES_CPP_NAMESPACE_END
130
131#endif
132
Note: See TracBrowser for help on using the repository browser.