Table of Contents

Class ApiKeyException

Namespace
Cuemon.AspNetCore.Http.Headers
Assembly
Cuemon.AspNetCore.dll

The exception that is thrown when the requirements of an API key header is not meet.

public class ApiKeyException : HttpStatusCodeException, ISerializable
Inheritance
Object
Exception
ApiKeyException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.GetType()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState

Constructors

ApiKeyException(Int32, String)

Initializes a new instance of the ApiKeyException class.

public ApiKeyException(int statusCode, string message)

Parameters

statusCode Int32

The HTTP status code to associate with this exception.

message String

The message that describes the HTTP status code.

See Also