Class WebApiErrorResponse
Defines an abstract base class for serializing instances of WebApiException.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Juhta.Net.WebApi.Exceptions
Assembly: Juhta.Net.WebApi.Exceptions.dll
Syntax
public abstract class WebApiErrorResponse
Properties
| Improve this Doc View SourceServiceStack
Gets or sets the service stack of the Web API error.
Declaration
public string[] ServiceStack { get; set; }
Property Value
Type | Description |
---|---|
System.String[] |
StatusCode
Gets or sets the HTTP status code of the Web API error.
Declaration
public string StatusCode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
HTTP status codes will be serialized into this field by using textual values of the enumeration System.Net.HttpStatusCode. Values will also be prefixed by 'ClientError.' or 'ServerError.'. For example, 'ClientError.BadRequest' and 'ServerError.BadGateway' are possible values.
Methods
| Improve this Doc View SourceThrow()
Throws this WebApiErrorResponse as a corresponding exception derived from WebApiException.
Declaration
public abstract void Throw()