CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
json_reader_exception.h
1#pragma once
2
3#include <cstdint>
4
5#include "system/text/json/json_exception.h"
6
7namespace System
8{
9namespace Runtime
10{
11namespace Serialization
12{
13class SerializationInfo;
14class StreamingContext;
15} // namespace Serialization
16} // namespace Runtime
17class String;
18} // namespace System
19
20namespace System {
21
22namespace Text {
23
24namespace Json {
25
26class Details_JsonReaderException;
28
29// This class exists because the serializer needs to catch reader-originated exceptions in order to throw JsonException which has Path information.
30class ASPOSECPP_SHARED_CLASS Details_JsonReaderException final : public Details_JsonException
31{
34
35 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
36 RTTI_INFO_DECL();
37
38 friend class System::ExceptionWrapperHelper;
39 template<typename T> friend class System::ExceptionWrapper;
40
41protected:
42
43 [[noreturn]] void DoThrow(const System::ExceptionPtr& self) const override;
44
45 Details_JsonReaderException(String message, int64_t lineNumber, int64_t bytePositionInLine);
46
47 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Details_JsonReaderException, CODEPORTING_ARGS(String message, int64_t lineNumber, int64_t bytePositionInLine));
48
50
52
53};
54
55} // namespace Json
56} // namespace Text
57} // namespace System
Represents an exception. Never create instances of this class manually. Use the Exception class inste...
Definition: exception.h:282
Template that represents wrapper of exceptions that are derived from Exception class.
Definition: exception.h:118
Dummy class to make StreamingContext-using translated classes compile. Do not manage instances of thi...
Definition: streaming_context.h:12
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:126
Definition: json_exception.h:42
Definition: json_reader_exception.h:31
void DoThrow(const System::ExceptionPtr &self) const override
Throws exception instance wrapped by exception wrapper.
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Details_JsonReaderException, CODEPORTING_ARGS(String message, int64_t lineNumber, int64_t bytePositionInLine))
MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(Details_JsonReaderException, CODEPORTING_ARGS(System::SharedPtr< Runtime::Serialization::SerializationInfo > info, Runtime::Serialization::StreamingContext context))
Details_JsonReaderException(String message, int64_t lineNumber, int64_t bytePositionInLine)
Details_JsonReaderException(System::SharedPtr< Runtime::Serialization::SerializationInfo > info, Runtime::Serialization::StreamingContext context)
@ Text
Defines color adjustment information for text.
System::ExceptionWrapper< Details_JsonReaderException > JsonReaderException
Definition: json_exception.h:22
Definition: db_command.h:9