Class UnauthorizedException
The exception that is thrown when the requirements of an HTTP WWW-Authenticated header is not meet.
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
Namespace: Cuemon.AspNetCore.Authentication
Assembly: Cuemon.AspNetCore.Authentication.dll
Syntax
public class UnauthorizedException : HttpStatusCodeException, ISerializable
Constructors
| Improve this DocUnauthorizedException(Int32, String)
Initializes a new instance of the UnauthorizedException class.
Declaration
public UnauthorizedException(int statusCode, string message)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | statusCode | The HTTP status code to associate with this exception. |
System.String | message | The message that describes the HTTP status code. |
Implements
System.Runtime.Serialization.ISerializable