tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
Tgstation.Server.Api.HeadersException Class Referencesealed

Thrown when trying to generate ApiHeaders from Microsoft.AspNetCore.Http.Headers.RequestHeaders fails. More...

Inheritance diagram for Tgstation.Server.Api.HeadersException:
Inheritance graph
[legend]
Collaboration diagram for Tgstation.Server.Api.HeadersException:
Collaboration graph
[legend]

Public Member Functions

 HeadersException (HeaderErrorTypes parseErrors, string message)
 Initializes a new instance of the HeadersException class.
 
 HeadersException ()
 Initializes a new instance of the HeadersException class.
 
 HeadersException (string message)
 Initializes a new instance of the HeadersException class.
 
 HeadersException (string message, Exception innerException)
 Initializes a new instance of the HeadersException class.
 

Properties

HeaderErrorTypes ParseErrors [get]
 The HeaderErrorTypess that are missing or malformed.
 

Detailed Description

Thrown when trying to generate ApiHeaders from Microsoft.AspNetCore.Http.Headers.RequestHeaders fails.

Definition at line 8 of file HeadersException.cs.

Constructor & Destructor Documentation

◆ HeadersException() [1/4]

Tgstation.Server.Api.HeadersException.HeadersException ( HeaderErrorTypes  parseErrors,
string  message 
)

Initializes a new instance of the HeadersException class.

Parameters
parseErrorsThe value of ParseErrors.
messageThe error message.

Definition at line 20 of file HeadersException.cs.

21 : base(message)
22 {
23 ParseErrors = parseErrors;
24 }
HeaderErrorTypes ParseErrors
The HeaderErrorTypess that are missing or malformed.

References Tgstation.Server.Api.HeadersException.ParseErrors.

◆ HeadersException() [2/4]

Tgstation.Server.Api.HeadersException.HeadersException ( )

Initializes a new instance of the HeadersException class.

Definition at line 29 of file HeadersException.cs.

30 {
31 }

◆ HeadersException() [3/4]

Tgstation.Server.Api.HeadersException.HeadersException ( string  message)

Initializes a new instance of the HeadersException class.

Parameters
messageThe error message.

Definition at line 37 of file HeadersException.cs.

38 : base(message)
39 {
40 }

◆ HeadersException() [4/4]

Tgstation.Server.Api.HeadersException.HeadersException ( string  message,
Exception  innerException 
)

Initializes a new instance of the HeadersException class.

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

Definition at line 47 of file HeadersException.cs.

48 : base(message, innerException)
49 {
50 }

Property Documentation

◆ ParseErrors

HeaderErrorTypes Tgstation.Server.Api.HeadersException.ParseErrors
get

The HeaderErrorTypess that are missing or malformed.

Definition at line 13 of file HeadersException.cs.

13{ get; }

Referenced by Tgstation.Server.Api.HeadersException.HeadersException(), and Tgstation.Server.Host.Controllers.ApiController.HeadersIssue().


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