CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xpath_exception.h
1
2
3#pragma once
4
5#include <system/exceptions.h>
6#include <system/array.h>
7
8
10namespace System
11{
12namespace Internal
13{
14namespace Xml
15{
16namespace XPath
17{
18class CompiledXpathExpr;
19class DescendantBaseQuery;
20class ExtensionQuery;
21class FunctionQuery;
22class Query;
23class QueryBuilder;
24class SortQuery;
25class ValueQuery;
26class VariableQuery;
27class XPathParser;
28class XPathScanner;
29} // namespace XPath
30} // namespace Xml
31} // namespace Internal
32namespace Xml
33{
34namespace XPath
35{
36class XPathNavigator;
37} // namespace XPath
38} // namespace Xml
39} // namespace System
41
42namespace System {
43
44namespace Xml {
45
46namespace XPath {
47
48class Details_XPathException;
50
52class ASPOSECPP_SHARED_CLASS Details_XPathException : public Details_SystemException
53{
56
57 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
58 ASPOSECPP_SHARED_RTTI_INFO_DECL();
59
60public:
61
64
65private:
67 friend class XPathNavigator;
68 friend class Internal::Xml::XPath::Query;
69 friend class Internal::Xml::XPath::ValueQuery;
70 friend class Internal::Xml::XPath::CompiledXpathExpr;
71 friend class Internal::Xml::XPath::CompiledXpathExpr;
72 friend class Internal::Xml::XPath::DescendantBaseQuery;
73 friend class Internal::Xml::XPath::ExtensionQuery;
74 friend class Internal::Xml::XPath::FunctionQuery;
75 friend class Internal::Xml::XPath::QueryBuilder;
76 friend class Internal::Xml::XPath::SortQuery;
77 friend class Internal::Xml::XPath::VariableQuery;
78 friend class Internal::Xml::XPath::XPathParser;
79 friend class Internal::Xml::XPath::XPathScanner;
80 friend class System::ExceptionWrapperHelper;
81 template <typename T> friend class System::ExceptionWrapper;
83
84public:
85
88 ASPOSECPP_SHARED_API String get_Message() const override;
89
90protected:
91
93 [[noreturn]] void DoThrow(const System::ExceptionPtr& self) const override;
94
96 ASPOSECPP_SHARED_API Details_XPathException();
97 ASPOSECPP_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Details_XPathException, CODEPORTING_ARGS());
98
101 ASPOSECPP_SHARED_API Details_XPathException(const String& message);
102 ASPOSECPP_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Details_XPathException, CODEPORTING_ARGS(String message));
103
107 ASPOSECPP_SHARED_API Details_XPathException(const String& message, Exception innerException);
108 ASPOSECPP_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Details_XPathException, CODEPORTING_ARGS(String message, Exception innerException));
109
111 static XPathException Create(const String& res);
112 static XPathException Create(const String& res, const String& arg);
113 static XPathException Create(const String& res, const String& arg, const String& arg2);
114 static XPathException Create(const String& res, const String& arg, Exception innerException);
115
116 Details_XPathException(const String& res, const ArrayPtr<String>& args);
117 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Details_XPathException, CODEPORTING_ARGS(String res, ArrayPtr<String> args));
118
119 Details_XPathException(const String& res, const ArrayPtr<String>& args, Exception inner);
120 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Details_XPathException, CODEPORTING_ARGS(String res, ArrayPtr<String> args, Exception inner));
121
122 #ifdef ASPOSE_GET_SHARED_MEMBERS
123 ASPOSECPP_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
124 #endif
126
127private:
128
129 String _res;
130 ArrayPtr<String> _args;
131 String _message;
132
133 static String CreateMessage(const String& res, const ArrayPtr<String>& args);
134
135};
136
137} // namespace XPath
138} // namespace Xml
139} // namespace System
140
141
A base class for classes that represent system (rather than application) exceptions....
Template that represents wrapper of exceptions that are derived from Exception class.
Definition: exception.h:113
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
Provides the exception thrown when an error occurs while processing an XPath expression.
Definition: xpath_exception.h:53
Details_XPathException(const String &message, Exception innerException)
Initializes a new instance of the XPathException class using the specified exception message and Exce...
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Details_XPathException, CODEPORTING_ARGS(String message))
String get_Message() const override
Returns the description of the error condition for this exception.
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Details_XPathException, CODEPORTING_ARGS(String message, Exception innerException))
Details_XPathException()
Initializes a new instance of the XPathException class.
void DoThrow(const System::ExceptionPtr &self) const override
Throws exception instance wrapped by exception wrapper.
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Details_XPathException, CODEPORTING_ARGS())
Details_XPathException(const String &message)
Initializes a new instance of the XPathException class with the specified exception message.
Provides a cursor model for navigating and editing XML data.
Definition: xpath_navigator.h:89
@ Xml
Serialize according to the XML 1.0 rules.
Definition: db_command.h:9
@ Query
The Query data.