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

Occurs when the server returns a bad request response if the ApiException.ErrorCode is present. The server returned an unknown reponse otherwise. More...

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

Public Member Functions

 ApiConflictException (ErrorMessageResponse? errorMessage, HttpResponseMessage responseMessage)
 Initializes a new instance of the ApiConflictException class.
 
 ApiConflictException ()
 Initializes a new instance of the ApiConflictException class.
 
 ApiConflictException (string message)
 Initializes a new instance of the ApiConflictException class.
 
 ApiConflictException (string message, Exception innerException)
 Initializes a new instance of the ApiConflictException class.
 

Additional Inherited Members

- Protected Member Functions inherited from Tgstation.Server.Client.ApiException
 ApiException (ErrorMessageResponse? errorMessage, HttpResponseMessage responseMessage)
 Initializes a new instance of the ApiException class.
 
 ApiException (HttpResponseMessage responseMessage, string message)
 Initializes a new instance of the ApiException class.
 
 ApiException ()
 Initializes a new instance of the ApiException class.
 
 ApiException (string message)
 Initializes a new instance of the ApiException class.
 
 ApiException (string message, Exception innerException)
 Initializes a new instance of the ApiException class.
 
- 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.ApiException
Version? ServerApiVersion [get]
 The Version of the server's API.
 
string? AdditionalServerData [get]
 Additional error data from the server.
 
ErrorCodeErrorCode [get]
 The API ErrorCode if applicable.
 
- Properties inherited from Tgstation.Server.Client.ClientException
HttpResponseMessage? ResponseMessage [get]
 The HttpStatusCode of the ClientException.
 

Detailed Description

Occurs when the server returns a bad request response if the ApiException.ErrorCode is present. The server returned an unknown reponse otherwise.

Definition at line 11 of file ApiConflictException.cs.

Constructor & Destructor Documentation

◆ ApiConflictException() [1/4]

Tgstation.Server.Client.ApiConflictException.ApiConflictException ( ErrorMessageResponse errorMessage,
HttpResponseMessage  responseMessage 
)

Initializes a new instance of the ApiConflictException class.

Parameters
errorMessageThe ErrorMessageResponse for the ApiException.
responseMessageThe HttpResponseMessage for the ClientException.

Definition at line 18 of file ApiConflictException.cs.

19 : base(errorMessage, responseMessage)
20 {
21 }

◆ ApiConflictException() [2/4]

Tgstation.Server.Client.ApiConflictException.ApiConflictException ( )

Initializes a new instance of the ApiConflictException class.

Definition at line 26 of file ApiConflictException.cs.

27 {
28 }

◆ ApiConflictException() [3/4]

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

Initializes a new instance of the ApiConflictException class.

Parameters
messageThe message for the Exception.

Definition at line 34 of file ApiConflictException.cs.

35 : base(message)
36 {
37 }

◆ ApiConflictException() [4/4]

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

Initializes a new instance of the ApiConflictException class.

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

Definition at line 44 of file ApiConflictException.cs.

45 : base(message, innerException)
46 {
47 }

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