Class HttpStatusCodeException
Provides a base-class for exceptions based on an HTTP status code.
Inheritance
System.Object
System.Exception
HttpStatusCodeException
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
Assembly: Cuemon.AspNetCore.dll
Syntax
public abstract class HttpStatusCodeException : Exception, ISerializable
Constructors
| Improve this DocHttpStatusCodeException(Int32, String)
Initializes a new instance of the HttpStatusCodeException class.
Declaration
protected HttpStatusCodeException(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. |
Properties
| Improve this DocStatusCode
Gets the HTTP status code associated with this exception.
Declaration
public int StatusCode { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The HTTP status code associated with this exception. |
Implements
System.Runtime.Serialization.ISerializable
Extension Methods
See Also
System.Exception