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.ServiceUnavailableException Class Referencesealed

Occurs when the client makes a request while the server is starting or stopping. More...

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

Public Member Functions

 ServiceUnavailableException (HttpResponseMessage responseMessage)
 Initializes a new instance of the ServiceUnavailableException class.
 
 ServiceUnavailableException ()
 Initializes a new instance of the ServiceUnavailableException class.
 
 ServiceUnavailableException (string message)
 Initializes a new instance of the ServiceUnavailableException class.
 
 ServiceUnavailableException (string message, Exception innerException)
 Initializes a new instance of the ServiceUnavailableException 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 the client makes a request while the server is starting or stopping.

Definition at line 9 of file ServiceUnavailableException.cs.

Constructor & Destructor Documentation

◆ ServiceUnavailableException() [1/4]

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

Initializes a new instance of the ServiceUnavailableException class.

Parameters
responseMessageThe HttpResponseMessage.

Definition at line 15 of file ServiceUnavailableException.cs.

16 : base(responseMessage, "The service is unavailable!")
17 {
18 }

◆ ServiceUnavailableException() [2/4]

Tgstation.Server.Client.ServiceUnavailableException.ServiceUnavailableException ( )

Initializes a new instance of the ServiceUnavailableException class.

Definition at line 23 of file ServiceUnavailableException.cs.

24 {
25 }

◆ ServiceUnavailableException() [3/4]

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

Initializes a new instance of the ServiceUnavailableException class.

Parameters
messageThe message for the Exception.

Definition at line 31 of file ServiceUnavailableException.cs.

32 : base(message)
33 {
34 }

◆ ServiceUnavailableException() [4/4]

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

Initializes a new instance of the ServiceUnavailableException class.

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

Definition at line 41 of file ServiceUnavailableException.cs.

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

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