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>
22 #include <zorba/xquery_exception.h>
23 
24 namespace zorba {
25 
26 ///////////////////////////////////////////////////////////////////////////////
27 
29 
30 /**
31  * A %ZorbaWarningCode is a diagnostic for all Zorba-specific warnings.
32  */
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  */
42 
43 ///////////////////////////////////////////////////////////////////////////////
44 
45 } // namespace zorba
46 #endif /* ZORBA_XQUERY_WARNING_API_H */
47 /* vim:set et sw=2 ts=2: */
XQueryException XQueryWarning
Re-use an XQueryException as an XQueryWarning to:
internal::SystemDiagnostic< internal::ZorbaWarningQName > ZorbaWarningCode
A ZorbaWarningCode is a diagnostic for all Zorba-specific warnings.
An XQueryException is-a ZorbaException for errors with the user's XQuery.
Diagnostic Warning
A Diagnostic is the base class for all Zorba diagnostics (errors and warnings).
Definition: diagnostic.h:325