tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Tgstation.Server.Client.UnrecognizedResponseException Class Referencesealed

Occurs when a response is received that did not deserialize to one of the expected Api.Models. More...

Inheritance diagram for Tgstation.Server.Client.UnrecognizedResponseException:
Inheritance graph
[legend]
Collaboration diagram for Tgstation.Server.Client.UnrecognizedResponseException:
Collaboration graph
[legend]

Public Member Functions

 UnrecognizedResponseException (HttpResponseMessage responseMessage)
 Initializes a new instance of the UnrecognizedResponseException class.
 
 UnrecognizedResponseException ()
 Initializes a new instance of the UnrecognizedResponseException class.
 
 UnrecognizedResponseException (string message)
 Initializes a new instance of the UnrecognizedResponseException class.
 
 UnrecognizedResponseException (string message, Exception innerException)
 Initializes a new instance of the UnrecognizedResponseException class.
 

Additional Inherited Members

- Protected Member Functions inherited from Tgstation.Server.Client.ClientException
 ClientException (HttpResponseMessage responseMessage, string message)
 Initializes a new instance of the ClientException class.
 
 ClientException ()
 Initializes a new instance of the ClientException class.
 
 ClientException (string message)
 Initializes a new instance of the ClientException class.
 
 ClientException (string message, Exception innerException)
 Initializes a new instance of the ClientException class.
 
- Properties inherited from Tgstation.Server.Client.ClientException
HttpResponseMessage? ResponseMessage [get]
 The HttpStatusCode of the ClientException.
 

Detailed Description

Occurs when a response is received that did not deserialize to one of the expected Api.Models.

Definition at line 9 of file UnrecognizedResponseException.cs.

Constructor & Destructor Documentation

◆ UnrecognizedResponseException() [1/4]

Tgstation.Server.Client.UnrecognizedResponseException.UnrecognizedResponseException ( HttpResponseMessage  responseMessage)

Initializes a new instance of the UnrecognizedResponseException class.

Parameters
responseMessageThe HttpResponseMessage.

Definition at line 15 of file UnrecognizedResponseException.cs.

16 : base(responseMessage, "Unrecognized response body!")
17 {
18 }

◆ UnrecognizedResponseException() [2/4]

Tgstation.Server.Client.UnrecognizedResponseException.UnrecognizedResponseException ( )

Initializes a new instance of the UnrecognizedResponseException class.

Definition at line 23 of file UnrecognizedResponseException.cs.

24 {
25 }

◆ UnrecognizedResponseException() [3/4]

Tgstation.Server.Client.UnrecognizedResponseException.UnrecognizedResponseException ( string  message)

Initializes a new instance of the UnrecognizedResponseException class.

Parameters
messageThe message for the Exception.

Definition at line 31 of file UnrecognizedResponseException.cs.

32 : base(message)
33 {
34 }

◆ UnrecognizedResponseException() [4/4]

Tgstation.Server.Client.UnrecognizedResponseException.UnrecognizedResponseException ( string  message,
Exception  innerException 
)

Initializes a new instance of the UnrecognizedResponseException class.

Parameters
messageThe message for the Exception.
innerExceptionThe inner Exception for the base Exception.

Definition at line 41 of file UnrecognizedResponseException.cs.

42 : base(message, innerException)
43 {
44 }

The documentation for this class was generated from the following file: