Xalan-C++ API Reference
1.12.0
xalanc
XercesParserLiaison
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
23
#include <
xalanc/XercesParserLiaison/XercesParserLiaisonDefinitions.hpp
>
24
25
26
27
#include <xercesc/dom/DOMException.hpp>
28
29
30
31
#include <
xalanc/XalanDOM/XalanDOMException.hpp
>
32
33
34
35
#include <
xalanc/XercesParserLiaison/XercesWrapperTypes.hpp
>
36
37
38
39
namespace
XALAN_CPP_NAMESPACE
{
40
41
42
43
class
XALAN_XERCESPARSERLIAISON_EXPORT
XercesDOMWrapperException
:
public
XalanDOMException
44
{
45
public
:
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
56
XercesDOMWrapperException
(
ExceptionCode
code = UNKNOWN_ERR);
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
*/
64
XercesDOMWrapperException
(
const
DOMExceptionType
& theException);
65
66
/**
67
* Copy constructor.
68
*
69
* @param other The object to be copied.
70
*/
71
XercesDOMWrapperException
(
const
XercesDOMWrapperException
& theSource);
72
73
//@}
74
/** @name Destructor. */
75
//@{
76
77
/**
78
* Destructor for XercesDOMException.
79
*/
80
virtual
81
~
XercesDOMWrapperException
();
82
//@}
83
84
private
:
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)
xalanc::XercesDOMWrapperException
Definition:
XercesDOMWrapperException.hpp:43
XALAN_CPP_NAMESPACE
#define XALAN_CPP_NAMESPACE
Xalan-C++ namespace, including major and minor version.
Definition:
XalanVersion.hpp:76
xalanc::DOMExceptionType
xercesc::DOMException DOMExceptionType
Definition:
XercesWrapperTypes.hpp:75
xalanc::XalanDOMException
Definition:
XalanDOMException.hpp:39
XercesParserLiaisonDefinitions.hpp
XALAN_XERCESPARSERLIAISON_EXPORT
#define XALAN_XERCESPARSERLIAISON_EXPORT
Definition:
XercesParserLiaisonDefinitions.hpp:39
xalanc::XalanDOMException::ExceptionCode
ExceptionCode
Definition:
XalanDOMException.hpp:45
XercesWrapperTypes.hpp
XalanDOMException.hpp
Copyright © 1999-2020 The Apache Software Foundation. All Rights Reserved.
Generated on Sun May 31 2020 10:37:19 for Xalan-C++ API Reference by
1.8.17