source: icXML/icXML-devel/src/xercesc/dom/DOMLSException.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: 4.1 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: DOMLSException.hpp 671894 2008-06-26 13:29:21Z borisk $
20 */
21
22#if !defined(XERCESC_INCLUDE_GUARD_DOMLSEXCEPTION_HPP)
23#define XERCESC_INCLUDE_GUARD_DOMLSEXCEPTION_HPP
24
25#include <xercesc/dom/DOMException.hpp>
26
27XERCES_CPP_NAMESPACE_BEGIN
28
29
30/**
31 * Parser or write operations may throw an LSException if the processing is stopped.
32 * The processing can be stopped due to a <code>DOMError</code> with a severity of
33 * DOMError::DOM_SEVERITY_FATAL_ERROR or a non recovered DOMError::DOM_SEVERITY_ERROR,
34 * or if <code>DOMErrorHandler::handleError()</code> returned <code>false</code>.
35 * <p><b>Note</b>: As suggested in the definition of the constants in the <code>DOMError</code>
36 * interface, a DOM implementation may choose to continue after a fatal error, but the
37 * resulting DOM tree is then implementation dependent.
38 * <p>See also the <a href='http://www.w3.org/TR/2004/REC-DOM-Level-3-LS-20040407/DOM3-LS.html'>
39 * Document Object Model (DOM) Level 3 Load and Save Specification</a>.
40 * @since DOM Level 3
41 */
42
43class MemoryManager;
44
45class CDOM_EXPORT DOMLSException : public DOMException {
46public:
47    // -----------------------------------------------------------------------
48    //  Class Types
49    // -----------------------------------------------------------------------
50    /** @name Public Contants */
51    //@{
52    /**
53     * ExceptionCode
54     *
55     * <p><code>PARSE_ERR:</code>
56     * If an attempt was made to load a document, or an XML Fragment, using DOMLSParser
57     * and the processing has been stopped.</p>
58     *
59     * <p><code>SERIALIZE_ERR:</code>
60     * If an attempt was made to serialize a Node using LSSerializer and the processing
61     * has been stopped.</p>
62     *
63     * @since DOM Level 3
64     */
65    enum LSExceptionCode {
66         PARSE_ERR        = 81,
67         SERIALIZE_ERR    = 82
68        };
69    //@}
70
71    // -----------------------------------------------------------------------
72    //  Constructors
73    // -----------------------------------------------------------------------
74    /** @name Constructors */
75    //@{
76    /**
77      * Default constructor for DOMLSException.
78      *
79      */
80    DOMLSException();
81
82    /**
83      * Constructor which takes an error code and a message.
84      *
85      * @param code           The error code which indicates the exception
86      * @param messageCode    The string containing the error message
87      * @param memoryManager  The memory manager used to (de)allocate memory
88      */
89    DOMLSException(short code,
90                   short messageCode,
91                   MemoryManager* const memoryManager);
92
93    /**
94      * Copy constructor.
95      *
96      * @param other The object to be copied.
97      */
98    DOMLSException(const DOMLSException &other);
99
100    //@}
101
102    // -----------------------------------------------------------------------
103    //  Destructors
104    // -----------------------------------------------------------------------
105    /** @name Destructor. */
106    //@{
107         /**
108          * Destructor for DOMLSException.
109          *
110          */
111    virtual ~DOMLSException();
112    //@}
113
114private:
115    // -----------------------------------------------------------------------
116    // Unimplemented constructors and operators
117    // -----------------------------------------------------------------------
118    DOMLSException & operator = (const DOMLSException &);
119};
120
121XERCES_CPP_NAMESPACE_END
122
123#endif
Note: See TracBrowser for help on using the repository browser.