WGet.NET 4.4.1
A WinGet wrapper library for .Net.
Loading...
Searching...
No Matches
InvalidJsonException.cs
1//--------------------------------------------------//
2// Created by basicx-StrgV //
3// https://github.com/basicx-StrgV/ //
4//--------------------------------------------------//
5using System;
6using System.Runtime.Serialization;
7
9{
13 [Serializable]
14 public class InvalidJsonException : Exception
15 {
19 public override string Message { get; } = "The provided JSON could not be deserialized.";
20
25 {
26 }
27
32 public InvalidJsonException(string message) : base(message)
33 {
34 Message = message;
35 }
36
41 public InvalidJsonException(Exception innerException) : base(string.Empty, innerException)
42 {
43 }
44
50 public InvalidJsonException(string message, Exception innerException) : base(message, innerException)
51 {
52 Message = message;
53 }
54
66 protected InvalidJsonException(SerializationInfo info, StreamingContext context) : base(info, context)
67 {
68 }
69 }
70}
Exception that gets thrown if the provided json string could not be deserialized.
override string Message
Gets a message that describes the current exception.
InvalidJsonException(string message)
Initializes a new instance of the WGetNET.Exceptions.InvalidJsonException class.
InvalidJsonException()
Initializes a new instance of the WGetNET.Exceptions.InvalidJsonException class.
InvalidJsonException(string message, Exception innerException)
Initializes a new instance of the WGetNET.Exceptions.InvalidJsonException class.
InvalidJsonException(SerializationInfo info, StreamingContext context)
Initializes a new instance of the WGetNET.Exceptions.InvalidJsonException class with serialized data.
InvalidJsonException(Exception innerException)
Initializes a new instance of the WGetNET.Exceptions.InvalidJsonException class.