source: icXML/icXML-devel/src/xercesc/dom/DOMXPathException.hpp @ 2722

Last change on this file since 2722 was 2722, checked in by cameron, 6 years ago

Original Xerces files with import mods for icxercesc

File size: 3.3 KB
Line 
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements.  See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License.  You may obtain a copy of the License at
8 *
9 *      http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18/*
19 * $Id: DOMXPathException.hpp 671894 2008-06-26 13:29:21Z borisk $
20 */
21
22#if !defined(XERCESC_INCLUDE_GUARD_DOMXPATHEXCEPTION_HPP)
23#define XERCESC_INCLUDE_GUARD_DOMXPATHEXCEPTION_HPP
24
25#include <xercesc/dom/DOMException.hpp>
26
27XERCES_CPP_NAMESPACE_BEGIN
28
29/**
30 * @since DOM Level 3
31 */
32class CDOM_EXPORT DOMXPathException : public DOMException
33{
34public:
35    //@{
36    /**
37     * ExceptionCode
38     * <br>INVALID_EXPRESSION_ERR The expression has a syntax error or otherwise
39     * is not a legal expression according to the rules of the specific
40     * <code>DOMXPathEvaluator</code> or contains specialized extension functions
41     * or variables not supported by this implementation.
42     * <br>TYPE_ERR The expression cannot be converted to return the specified type.
43     * <br>NO_RESULT_ERROR There is no current result in the result object.
44     */
45        enum ExceptionCode {
46                INVALID_EXPRESSION_ERR = 51,
47                TYPE_ERR = 52,
48                NO_RESULT_ERROR = 53
49        };
50    //@}
51
52public:
53    // -----------------------------------------------------------------------
54    //  Constructors
55    // -----------------------------------------------------------------------
56    /** @name Constructors */
57    //@{
58    /**
59      * Default constructor for DOMXPathException.
60      *
61      */
62    DOMXPathException();
63
64    /**
65      * Constructor which takes an error code and a message.
66      *
67      * @param code The error code which indicates the exception
68      * @param messageCode    The string containing the error message
69      * @param memoryManager  The memory manager used to (de)allocate memory
70      */
71    DOMXPathException(short code,
72                      short messageCode = 0,
73                      MemoryManager* const  memoryManager = XMLPlatformUtils::fgMemoryManager);
74
75    /**
76      * Copy constructor.
77      *
78      * @param other The object to be copied.
79      */
80    DOMXPathException(const DOMXPathException  &other);
81
82    //@}
83
84    // -----------------------------------------------------------------------
85    //  Destructors
86    // -----------------------------------------------------------------------
87    /** @name Destructor. */
88    //@{
89         /**
90          * Destructor for DOMXPathException.
91          *
92          */
93    virtual ~DOMXPathException();
94    //@}
95
96private:
97    // -----------------------------------------------------------------------
98    // Unimplemented constructors and operators
99    // -----------------------------------------------------------------------
100    DOMXPathException& operator = (const DOMXPathException&);
101};
102
103XERCES_CPP_NAMESPACE_END
104
105#endif
Note: See TracBrowser for help on using the repository browser.