DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
JsonException.h
Go to the documentation of this file.
1
3
4#pragma once
5
6#include "Common.h"
8
9namespace DotNetDupe {
10 namespace System {
11 namespace Text {
12 namespace Json {
13
19 public:
21 DOTNETDUPE_API JsonException() : SystemException(String("A JSON parse error occurred.")) {}
22
25 DOTNETDUPE_API JsonException(const String& sMessage) : SystemException(sMessage) {}
26
30 DOTNETDUPE_API JsonException(const String& sMessage, const Exception& innerException) : SystemException(sMessage, innerException) {}
31 };
32
33 }
34 }
35 }
36}
Defines common cross-platform macros, export decorators, and fundamental types.
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition Common.h:20
Serves as the base class for system exceptions across the library.
Exception()
Initializes a new instance of the Exception class with a default system-supplied message.
Definition Exception.cpp:15
Represents text as a sequence of UTF-8 code units with culture-invariant operations.
Definition String.h:74
SystemException()
Initializes a new instance of the SystemException class with a default message.
Definition Exception.cpp:48
JsonException()
Initializes a new instance of the JsonException class with a default message.
JsonException(const String &sMessage)
Initializes a new instance of the JsonException class with a specified error message.
JsonException(const String &sMessage, const Exception &innerException)
Initializes a new instance of the JsonException class with a specified error message and inner except...