SaxonC 12.7.0
Saxon Processor library for C/C++, PHP and Python
Loading...
Searching...
No Matches
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 "saxonc/SaxonProcessor.h"
15#include <exception>
16#include <iostream>
17
18class SaxonProcessor;
19
24class SAXONC_EXPORT SaxonApiException : public std::exception {
25
26public:
30 SaxonApiException(bool staticError = false);
31
36 SaxonApiException(const char *err);
37
43
49#ifdef _LIBCPP___EXCEPTION_EXCEPTION_H
50 virtual char const* what() const _NOEXCEPT;
51#else
52 virtual const char *what();
53#endif
54
55
56
67 SaxonApiException(const char *message, const char *errorCode,
68 const char *systemId, int linenumber);
69
73 virtual ~SaxonApiException() throw();
74
81 const char *getErrorCode();
82
89 int getLineNumber();
90
97 const char *getMessage();
98
106 const char *getMessageWithErrorCode();
107
115 const char *getCombinedStaticErrorMessages();
116
117
121 int staticErrorCount();
122
126 const char *getSystemId();
127
128private:
129 bool cppException;
130 bool isStaticError;
131 std::string message;
132 std::string s_message;
133 std::string ec_message;
134 int lineNumber;
135 std::string errorCode;
136 std::string systemId;
137};
138
139#endif /* SAXON_API_EXCEPTION_H */
SaxonApiException.
Definition SaxonApiException.h:24
The SaxonProcessor class acts as a factory for generating XQuery, XPath, Schema and XSLT compilers.
Definition SaxonProcessor.h:117