Class UserAgentException
The exception that is thrown when the requirements of an HTTP User-Agent 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.Http.Headers
Assembly: Cuemon.AspNetCore.dll
Syntax
public class UserAgentException : HttpStatusCodeException, ISerializable
Constructors
| Improve this DocUserAgentException(Int32, String)
Initializes a new instance of the UserAgentException class.
Declaration
public UserAgentException(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