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

Occurs when the API version of the client is not compatible with the server's. More...

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

Public Member Functions

 VersionMismatchException (ErrorMessageResponse? errorMessage, HttpResponseMessage responseMessage)
 Initializes a new instance of the VersionMismatchException class.
 
 VersionMismatchException ()
 Initializes a new instance of the VersionMismatchException class.
 
 VersionMismatchException (string message)
 Initializes a new instance of the VersionMismatchException class.
 
 VersionMismatchException (string message, Exception innerException)
 Initializes a new instance of the VersionMismatchException 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 API version of the client is not compatible with the server's.

Definition at line 11 of file VersionMismatchException.cs.

Constructor & Destructor Documentation

◆ VersionMismatchException() [1/4]

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

Initializes a new instance of the VersionMismatchException class.

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

Definition at line 18 of file VersionMismatchException.cs.

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

◆ VersionMismatchException() [2/4]

Tgstation.Server.Client.VersionMismatchException.VersionMismatchException ( )

Initializes a new instance of the VersionMismatchException class.

Definition at line 26 of file VersionMismatchException.cs.

27 {
28 }

◆ VersionMismatchException() [3/4]

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

Initializes a new instance of the VersionMismatchException class.

Parameters
messageThe message for the Exception.

Definition at line 34 of file VersionMismatchException.cs.

35 : base(message)
36 {
37 }

◆ VersionMismatchException() [4/4]

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

Initializes a new instance of the VersionMismatchException class.

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

Definition at line 44 of file VersionMismatchException.cs.

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

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