tgstation-server  4.4.0
The /tg/station 13 server suite
HeadersException.cs
Go to the documentation of this file.
1 using System;
2 
3 namespace Tgstation.Server.Api
4 {
8  public sealed class HeadersException : Exception
9  {
13  public HeaderTypes MissingOrMalformedHeaders { get; }
14 
20  public HeadersException(HeaderTypes missingOrMalformedHeaders, string message) : base(message)
21  {
22  MissingOrMalformedHeaders = missingOrMalformedHeaders;
23  }
24 
29  {
30  }
31 
36  public HeadersException(string message) : base(message)
37  {
38  }
39 
45  public HeadersException(string message, Exception innerException) : base(message, innerException)
46  {
47  }
48  }
49 }
Thrown when trying to generate ApiHeaders from Microsoft.AspNetCore.Http.Headers.RequestHeaders fails...
HeadersException(HeaderTypes missingOrMalformedHeaders, string message)
Initializes a new instance of the HeadersException .
HeaderTypes
Types of individual ApiHeaders.
Definition: HeaderTypes.cs:9
HeadersException(string message)
Initializes a new instance of the HeadersException .
HeadersException(string message, Exception innerException)
Initializes a new instance of the HeadersException .
HeadersException()
Initializes a new instance of the HeadersException .