Show / Hide Table of Contents

Class WebApiErrorResponse

Defines an abstract base class for serializing instances of WebApiException.

Inheritance
System.Object
WebApiErrorResponse
ClientErrorResponse
ServerErrorResponse
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 Source

ServiceStack

Gets or sets the service stack of the Web API error.

Declaration
public string[] ServiceStack { get; set; }
Property Value
Type Description
System.String[]
| Improve this Doc View Source

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 Source

Throw()

Throws this WebApiErrorResponse as a corresponding exception derived from WebApiException.

Declaration
public abstract void Throw()
  • Improve this Doc
  • View Source
Back to top Copyright © 2017-2019 Juha Lähteenmäki
Generated by DocFX