CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
xml_schema_inference_exception.h
1
2
3#pragma once
4
5#include <xml/schema/xml_schema_exception.h>
6#include <system/exceptions.h>
7#include <cstdint>
8
9
11namespace System
12{
13class String;
14namespace Xml
15{
16namespace Schema
17{
18class XmlSchemaInference;
19} // namespace Schema
20} // namespace Xml
21} // namespace System
23
24namespace System {
25
26namespace Xml {
27
28namespace Schema {
29
30class Details_XmlSchemaInferenceException;
32
35{
38
39 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
40 ASPOSECPP_SHARED_RTTI_INFO_DECL();
41
42public:
43
46
47private:
49 friend class XmlSchemaInference;
50 friend class System::ExceptionWrapperHelper;
51 template <typename T> friend class System::ExceptionWrapper;
53
54protected:
55
57 [[noreturn]] void DoThrow(const System::ExceptionPtr& self) const override;
58
62
65 ASPOSECPP_SHARED_API Details_XmlSchemaInferenceException(const String& message);
67
72 ASPOSECPP_SHARED_API Details_XmlSchemaInferenceException(const String& message, Exception innerException);
73 ASPOSECPP_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Details_XmlSchemaInferenceException, CODEPORTING_ARGS(String message, Exception innerException));
74
82 ASPOSECPP_SHARED_API Details_XmlSchemaInferenceException(const String& message, Exception innerException, int32_t lineNumber, int32_t linePosition);
83 ASPOSECPP_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Details_XmlSchemaInferenceException, CODEPORTING_ARGS(String message, Exception innerException, int32_t lineNumber, int32_t linePosition));
84
87 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Details_XmlSchemaInferenceException, CODEPORTING_ARGS(String res, String arg));
88
89 Details_XmlSchemaInferenceException(const String& res, int32_t lineNumber, int32_t linePosition);
90 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Details_XmlSchemaInferenceException, CODEPORTING_ARGS(String res, int32_t lineNumber, int32_t linePosition));
92};
93
94} // namespace Schema
95} // namespace Xml
96} // namespace System
97
98
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
Returns detailed information about the schema exception.
Definition: xml_schema_exception.h:80
Returns information about errors encountered by the XmlSchemaInference class while inferring a schema...
Definition: xml_schema_inference_exception.h:35
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Details_XmlSchemaInferenceException, CODEPORTING_ARGS())
Details_XmlSchemaInferenceException(const String &message, Exception innerException)
Initializes a new instance of the XmlSchemaInferenceException class with the error message specified ...
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Details_XmlSchemaInferenceException, CODEPORTING_ARGS(String message))
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Details_XmlSchemaInferenceException, CODEPORTING_ARGS(String message, Exception innerException))
Details_XmlSchemaInferenceException(const String &message, Exception innerException, int32_t lineNumber, int32_t linePosition)
Initializes a new instance of the XmlSchemaInferenceException class with the error message specified,...
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Details_XmlSchemaInferenceException, CODEPORTING_ARGS(String message, Exception innerException, int32_t lineNumber, int32_t linePosition))
Details_XmlSchemaInferenceException()
Initializes a new instance of the XmlSchemaInferenceException class.
Details_XmlSchemaInferenceException(const String &message)
Initializes a new instance of the XmlSchemaInferenceException class with the error message specified.
void DoThrow(const System::ExceptionPtr &self) const override
Throws exception instance wrapped by exception wrapper.
Infers an XML Schema Definition Language (XSD) schema from an XML document. The XmlSchemaInference cl...
Definition: infer.h:56
@ Schema
Validate according to XML Schema definition language (XSD) schemas, including inline XML Schemas....
@ Xml
Serialize according to the XML 1.0 rules.
Definition: db_command.h:9