Xerces-C++
3.1.3
Main Page
Related Pages
Classes
Files
File List
File Members
src
xercesc
dom
DOMError.hpp
Go to the documentation of this file.
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: DOMError.hpp 671894 2008-06-26 13:29:21Z borisk $
20
*/
21
22
#if !defined(XERCESC_INCLUDE_GUARD_DOMERROR_HPP)
23
#define XERCESC_INCLUDE_GUARD_DOMERROR_HPP
24
25
#include <
xercesc/util/XercesDefs.hpp
>
26
27
XERCES_CPP_NAMESPACE_BEGIN
28
29
class
DOMLocator
;
30
31
39
class
CDOM_EXPORT
DOMError
40
{
41
protected
:
42
// -----------------------------------------------------------------------
43
// Hidden constructors
44
// -----------------------------------------------------------------------
47
DOMError
() {};
49
50
private
:
51
// -----------------------------------------------------------------------
52
// Unimplemented constructors and operators
53
// -----------------------------------------------------------------------
56
DOMError
(
const
DOMError
&);
57
DOMError
& operator = (
const
DOMError
&);
59
60
public
:
61
// -----------------------------------------------------------------------
62
// All constructors are hidden, just the destructor is available
63
// -----------------------------------------------------------------------
70
virtual
~DOMError
() {};
72
73
// -----------------------------------------------------------------------
74
// Class types
75
// -----------------------------------------------------------------------
99
enum
ErrorSeverity
100
{
101
DOM_SEVERITY_WARNING = 1,
102
DOM_SEVERITY_ERROR = 2,
103
DOM_SEVERITY_FATAL_ERROR = 3
104
};
106
107
108
// -----------------------------------------------------------------------
109
// Virtual DOMError interface
110
// -----------------------------------------------------------------------
113
// -----------------------------------------------------------------------
114
// Getter methods
115
// -----------------------------------------------------------------------
122
virtual
ErrorSeverity getSeverity()
const
= 0;
123
129
virtual
const
XMLCh
* getMessage()
const
= 0;
130
136
virtual
DOMLocator
* getLocation()
const
= 0;
137
143
virtual
void
* getRelatedException()
const
= 0;
144
159
virtual
const
XMLCh
* getType()
const
= 0;
160
166
virtual
void
* getRelatedData()
const
= 0;
168
169
};
170
171
XERCES_CPP_NAMESPACE_END
172
173
#endif
Generated on Mon Feb 1 2016 13:04:19 for Xerces-C++ by
1.8.1.2