Class HTTPStatusException
Thrown to indicate various Http status conditions
Inheritance
System.Object
System.Exception
HTTPStatusException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetBaseException()
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
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Azos.Wave.dll
Syntax
[Serializable]
public class HTTPStatusException : WaveException, ISerializable
Constructors
HTTPStatusException(Int32, String)
Declaration
public HTTPStatusException(int statusCode, string statusDescription)
Parameters
Type |
Name |
Description |
System.Int32 |
statusCode |
|
System.String |
statusDescription |
|
HTTPStatusException(Int32, String, String)
Declaration
public HTTPStatusException(int statusCode, string statusDescription, string message)
Parameters
Type |
Name |
Description |
System.Int32 |
statusCode |
|
System.String |
statusDescription |
|
System.String |
message |
|
HTTPStatusException(Int32, String, String, Exception)
Declaration
public HTTPStatusException(int statusCode, string statusDescription, string message, Exception inner)
Parameters
Type |
Name |
Description |
System.Int32 |
statusCode |
|
System.String |
statusDescription |
|
System.String |
message |
|
System.Exception |
inner |
|
HTTPStatusException(SerializationInfo, StreamingContext)
Declaration
protected HTTPStatusException(SerializationInfo info, StreamingContext context)
Parameters
Type |
Name |
Description |
System.Runtime.Serialization.SerializationInfo |
info |
|
System.Runtime.Serialization.StreamingContext |
context |
|
Fields
STATUS_CODE_FLD_NAME
Declaration
public const string STATUS_CODE_FLD_NAME = "HTTPSE-SC"
Field Value
Type |
Description |
System.String |
|
STATUS_DESCRIPTION_FLD_NAME
Declaration
public const string STATUS_DESCRIPTION_FLD_NAME = "HTTPSE-SD"
Field Value
Type |
Description |
System.String |
|
StatusCode
Declaration
public readonly int StatusCode
Field Value
Type |
Description |
System.Int32 |
|
StatusDescription
Declaration
public readonly string StatusDescription
Field Value
Type |
Description |
System.String |
|
Methods
BadRequest_400(String)
Declaration
public static HTTPStatusException BadRequest_400(string descr = null)
Parameters
Type |
Name |
Description |
System.String |
descr |
|
Returns
Forbidden_403(String)
Declaration
public static HTTPStatusException Forbidden_403(string descr = null)
Parameters
Type |
Name |
Description |
System.String |
descr |
|
Returns
GetObjectData(SerializationInfo, StreamingContext)
Declaration
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type |
Name |
Description |
System.Runtime.Serialization.SerializationInfo |
info |
|
System.Runtime.Serialization.StreamingContext |
context |
|
Overrides
InternalError_500(String)
Declaration
public static HTTPStatusException InternalError_500(string descr = null)
Parameters
Type |
Name |
Description |
System.String |
descr |
|
Returns
MethodNotAllowed_405(String)
Declaration
public static HTTPStatusException MethodNotAllowed_405(string descr = null)
Parameters
Type |
Name |
Description |
System.String |
descr |
|
Returns
NotAcceptable_406(String)
Declaration
public static HTTPStatusException NotAcceptable_406(string descr = null)
Parameters
Type |
Name |
Description |
System.String |
descr |
|
Returns
NotFound_404(String)
Declaration
public static HTTPStatusException NotFound_404(string descr = null)
Parameters
Type |
Name |
Description |
System.String |
descr |
|
Returns
TooManyRequests_429(String)
Declaration
public static HTTPStatusException TooManyRequests_429(string descr = null)
Parameters
Type |
Name |
Description |
System.String |
descr |
|
Returns
Unauthorized_401(String)
Declaration
public static HTTPStatusException Unauthorized_401(string descr = null)
Parameters
Type |
Name |
Description |
System.String |
descr |
|
Returns
Implements
System.Runtime.Serialization.ISerializable
Extension Methods