Zorba
The XQuery Processor
Documentation
Live Demo
Modules
Download
Tools
Blog
Code
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
include
zorba
xquery_warning.h
Go to the documentation of this file.
1
/*
2
* Copyright 2006-2008 The FLWOR Foundation.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
#ifndef ZORBA_XQUERY_WARNING_API_H
18
#define ZORBA_XQUERY_WARNING_API_H
19
20
#include <
zorba/internal/qname.h
>
21
#include <
zorba/internal/system_diagnostic.h
>
22
#include <
zorba/xquery_exception.h
>
23
24
namespace
zorba {
25
26
///////////////////////////////////////////////////////////////////////////////
27
28
typedef
Diagnostic
Warning
;
29
30
/**
31
* A %ZorbaWarningCode is a diagnostic for all Zorba-specific warnings.
32
*/
33
typedef
internal::SystemDiagnostic<internal::ZorbaWarningQName>
34
ZorbaWarningCode
;
35
36
/**
37
* Re-use an XQueryException as an %XQueryWarning to:
38
* - leverage all the localization and printing code
39
* - allow warnings to be treated as exceptions and thrown
40
*/
41
typedef
XQueryException
XQueryWarning
;
42
43
///////////////////////////////////////////////////////////////////////////////
44
45
}
// namespace zorba
46
#endif
/* ZORBA_XQUERY_WARNING_API_H */
47
/* vim:set et sw=2 ts=2: */
Please enable JavaScript to view the
comments powered by Disqus.
blog comments powered by
Disqus