tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
Protected Member Functions | Properties | List of all members
Tgstation.Server.Client.ClientException Class Referenceabstract

Exceptions thrown by IRestServerClients. More...

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

Protected Member Functions

 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

HttpResponseMessage? ResponseMessage [get]
 The HttpStatusCode of the ClientException.
 

Detailed Description

Exceptions thrown by IRestServerClients.

Definition at line 10 of file ClientException.cs.

Constructor & Destructor Documentation

◆ ClientException() [1/4]

Tgstation.Server.Client.ClientException.ClientException ( HttpResponseMessage  responseMessage,
string  message 
)
protected

Initializes a new instance of the ClientException class.

Parameters
responseMessageThe HttpResponseMessage that generated the ClientException.
messageThe message for the Exception.

Definition at line 22 of file ClientException.cs.

23 : base(message)
24 {
25 ResponseMessage = responseMessage ?? throw new ArgumentNullException(nameof(responseMessage));
26 }
HttpResponseMessage? ResponseMessage
The HttpStatusCode of the ClientException.

References Tgstation.Server.Client.ClientException.ResponseMessage.

◆ ClientException() [2/4]

Tgstation.Server.Client.ClientException.ClientException ( )
protected

Initializes a new instance of the ClientException class.

Definition at line 31 of file ClientException.cs.

32 {
33 }

◆ ClientException() [3/4]

Tgstation.Server.Client.ClientException.ClientException ( string  message)
protected

Initializes a new instance of the ClientException class.

Parameters
messageThe message for the Exception.

Definition at line 39 of file ClientException.cs.

40 : base(message)
41 {
42 }

◆ ClientException() [4/4]

Tgstation.Server.Client.ClientException.ClientException ( string  message,
Exception  innerException 
)
protected

Initializes a new instance of the ClientException class.

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

Definition at line 49 of file ClientException.cs.

50 : base(message, innerException)
51 {
52 }

Property Documentation

◆ ResponseMessage

HttpResponseMessage? Tgstation.Server.Client.ClientException.ResponseMessage
get

The HttpStatusCode of the ClientException.

Definition at line 15 of file ClientException.cs.

15{ get; }

Referenced by Tgstation.Server.Client.ClientException.ClientException().


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