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

Occurs when the client attempts to perform an action they do not have the rights for. More...

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

Public Member Functions

 InsufficientPermissionsException (HttpResponseMessage responseMessage)
 Initializes a new instance of the InsufficientPermissionsException class.
 
 InsufficientPermissionsException ()
 Initializes a new instance of the InsufficientPermissionsException class.
 
 InsufficientPermissionsException (string message)
 Initializes a new instance of the InsufficientPermissionsException class.
 
 InsufficientPermissionsException (string message, Exception innerException)
 Initializes a new instance of the InsufficientPermissionsException 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 client attempts to perform an action they do not have the rights for.

Definition at line 9 of file InsufficientPermissionsException.cs.

Constructor & Destructor Documentation

◆ InsufficientPermissionsException() [1/4]

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

Initializes a new instance of the InsufficientPermissionsException class.

Parameters
responseMessageThe HttpResponseMessage for the ClientException.

Definition at line 15 of file InsufficientPermissionsException.cs.

16 : base(
17 responseMessage,
18 "The current user has insufficient permissions to perform the requested operation!")
19 {
20 }

◆ InsufficientPermissionsException() [2/4]

Tgstation.Server.Client.InsufficientPermissionsException.InsufficientPermissionsException ( )

Initializes a new instance of the InsufficientPermissionsException class.

Definition at line 25 of file InsufficientPermissionsException.cs.

26 {
27 }

◆ InsufficientPermissionsException() [3/4]

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

Initializes a new instance of the InsufficientPermissionsException class.

Parameters
messageThe message for the Exception.

Definition at line 33 of file InsufficientPermissionsException.cs.

34 : base(message)
35 {
36 }

◆ InsufficientPermissionsException() [4/4]

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

Initializes a new instance of the InsufficientPermissionsException class.

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

Definition at line 43 of file InsufficientPermissionsException.cs.

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

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