SaxonC
13.1.0
Saxon Processor library for C/C++, PHP and Python
Loading...
Searching...
No Matches
src
include
saxonc
SaxonApiException.h
1
#ifndef SAXON_API_EXCEPTION_H
2
#define SAXON_API_EXCEPTION_H
3
5
// Copyright (c) 2022 - 2023 Saxonica Limited.
6
// This Source Code Form is subject to the terms of the Mozilla Public License,
7
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
8
// obtain one at http://mozilla.org/MPL/2.0/. This Source Code Form is
9
// "Incompatible With Secondary Licenses", as defined by the Mozilla Public
10
// License, v. 2.0.
12
13
#include "saxonc_export.h"
14
#include "saxon_error.h"
15
#include "saxonc/SaxonProcessor.h"
16
#include <exception>
17
#include <iostream>
18
19
class
SaxonProcessor
;
20
25
class
SAXONC_EXPORT
SaxonApiException
:
public
std::exception {
26
27
public
:
31
SaxonApiException
(
bool
staticError =
false
);
32
37
SaxonApiException
(
const
char
*err);
38
43
SaxonApiException
(
const
SaxonApiException
&ex);
44
50
#ifdef _LIBCPP___EXCEPTION_EXCEPTION_H
51
virtual
char
const
* what()
const
_NOEXCEPT;
52
#else
53
virtual
const
char
*what();
54
#endif
55
56
57
68
SaxonApiException
(
const
char
*message,
const
char
*errorCode,
69
const
char
*systemId,
int
linenumber);
70
84
SaxonApiException
(saxon_status_t status,
const
char
*message,
const
char
*errorCode,
85
const
char
*systemId,
int
linenumber,
int
numOfErrors);
86
87
93
SaxonApiException
(saxon_error_t error);
94
98
virtual
~SaxonApiException
()
throw
();
99
106
const
char
*getErrorCode();
107
114
int
getLineNumber();
115
122
const
char
*getMessage();
123
131
const
char
*getMessageWithErrorCode();
132
133
137
int
staticErrorCount();
138
142
const
char
*getSystemId();
143
144
private
:
145
bool
isStaticError;
146
saxon_status_t exception_status;
147
std::string message;
148
std::string s_message;
149
std::string ec_message;
150
int
lineNumber, numOfErrors;
151
std::string errorCode;
152
std::string systemId;
153
};
154
155
#endif
/* SAXON_API_EXCEPTION_H */
SaxonApiException
SaxonApiException.
Definition
SaxonApiException.h:25
SaxonProcessor
The SaxonProcessor class acts as a factory for generating XQuery, XPath, Schema and XSLT compilers.
Definition
SaxonProcessor.h:137
Generated on Wed Oct 14 2026 16:29:55 for SaxonC by
1.9.8