WGet.NET 4.4.1
A WinGet wrapper library for .Net.
Loading...
Searching...
No Matches
WGetNET.Exceptions.InvalidJsonException Class Reference

Exception that gets thrown if the provided json string could not be deserialized. More...

Inheritance diagram for WGetNET.Exceptions.InvalidJsonException:

Public Member Functions

 InvalidJsonException ()
 Initializes a new instance of the WGetNET.Exceptions.InvalidJsonException class.
 
 InvalidJsonException (string message)
 Initializes a new instance of the WGetNET.Exceptions.InvalidJsonException class.
 
 InvalidJsonException (Exception innerException)
 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.
 

Protected Member Functions

 InvalidJsonException (SerializationInfo info, StreamingContext context)
 Initializes a new instance of the WGetNET.Exceptions.InvalidJsonException class with serialized data.
 

Properties

override string Message = "The provided JSON could not be deserialized." [get]
 Gets a message that describes the current exception.
 

Detailed Description

Exception that gets thrown if the provided json string could not be deserialized.

Definition at line 14 of file InvalidJsonException.cs.

Constructor & Destructor Documentation

◆ InvalidJsonException() [1/5]

WGetNET.Exceptions.InvalidJsonException.InvalidJsonException ( )

Initializes a new instance of the WGetNET.Exceptions.InvalidJsonException class.

Definition at line 24 of file InvalidJsonException.cs.

◆ InvalidJsonException() [2/5]

WGetNET.Exceptions.InvalidJsonException.InvalidJsonException ( string message)

Initializes a new instance of the WGetNET.Exceptions.InvalidJsonException class.

Parameters
messageMessage of the exception

Definition at line 32 of file InvalidJsonException.cs.

◆ InvalidJsonException() [3/5]

WGetNET.Exceptions.InvalidJsonException.InvalidJsonException ( Exception innerException)

Initializes a new instance of the WGetNET.Exceptions.InvalidJsonException class.

Parameters
innerExceptionThe inner exception

Definition at line 41 of file InvalidJsonException.cs.

◆ InvalidJsonException() [4/5]

WGetNET.Exceptions.InvalidJsonException.InvalidJsonException ( string message,
Exception innerException )

Initializes a new instance of the WGetNET.Exceptions.InvalidJsonException class.

Parameters
messageMessage of the exception
innerExceptionThe inner exception

Definition at line 50 of file InvalidJsonException.cs.

◆ InvalidJsonException() [5/5]

WGetNET.Exceptions.InvalidJsonException.InvalidJsonException ( SerializationInfo info,
StreamingContext context )
protected

Initializes a new instance of the WGetNET.Exceptions.InvalidJsonException class with serialized data.

Parameters
infoThe System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.
contextThe System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination.

Definition at line 66 of file InvalidJsonException.cs.

Property Documentation

◆ Message

override string WGetNET.Exceptions.InvalidJsonException.Message = "The provided JSON could not be deserialized."
get

Gets a message that describes the current exception.

Definition at line 19 of file InvalidJsonException.cs.