Xalan-C++ API Reference 1.12.0
XercesDOMWrapperException.hpp
Go to the documentation of this file.
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18#if !defined(XERCESDOMWRAPPEREXCEPTION_HEADER_GUARD_1357924680)
19#define XERCESDOMWRAPPEREXCEPTION_HEADER_GUARD_1357924680
20
21
22
24
25
26
27#include <xercesc/dom/DOMException.hpp>
28
29
30
32
33
34
36
37
38
39namespace XALAN_CPP_NAMESPACE {
40
41
42
44{
45public:
46
47 /** @name Constructors and assignment operator */
48 //@{
49
50 /**
51 * Constructor which takes an error code.
52 *
53 * @param code The error code which indicates the exception
54 */
55 explicit
57
58 /**
59 * Constructor which takes a Xerces exception and
60 * translates it into a XercesDOMException.
61 *
62 * @param code The Xerces DOMException instance.
63 */
65
66 /**
67 * Copy constructor.
68 *
69 * @param other The object to be copied.
70 */
72
73 //@}
74 /** @name Destructor. */
75 //@{
76
77 /**
78 * Destructor for XercesDOMException.
79 */
80 virtual
82 //@}
83
84private:
85
86 static ExceptionCode
87 translateErrorCode(DOMExceptionType::ExceptionCode theCode);
88
89 static ExceptionCode
90 translateErrorCode(short theCode)
91 {
92 return translateErrorCode(static_cast<DOMExceptionType::ExceptionCode>(theCode));
93 }
94};
95
96
97
98}
99
100
101
102#endif // !defined(XERCESDOMWRAPPEREXCEPTION_HEADER_GUARD_1357924680)
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
#define XALAN_XERCESPARSERLIAISON_EXPORT
virtual ~XercesDOMWrapperException()
Destructor for XercesDOMException.
XercesDOMWrapperException(const XercesDOMWrapperException &theSource)
Copy constructor.
XercesDOMWrapperException(const DOMExceptionType &theException)
Constructor which takes a Xerces exception and translates it into a XercesDOMException.
XercesDOMWrapperException(ExceptionCode code=UNKNOWN_ERR)
Constructor which takes an error code.
xercesc::DOMException DOMExceptionType