HttpResponseException Class
An exception that allows for a given HttpResponseMessage to be returned to the client.
Inheritance Hierarchy
System.Object
System.Exception
System.Web.Http.HttpResponseException
Namespace: System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Class HttpResponseException _
Inherits Exception
'Usage
Dim instance As HttpResponseException
public class HttpResponseException : Exception
public ref class HttpResponseException : public Exception
type HttpResponseException =
class
inherit Exception
end
public class HttpResponseException extends Exception
The HttpResponseException type exposes the following members.
Constructors
Name | Description | |
---|---|---|
HttpResponseException(HttpResponseMessage) | Initializes a new instance of the HttpResponseException class. | |
HttpResponseException(HttpStatusCode) | Initializes a new instance of the HttpResponseException class. |
Top
Properties
Name | Description | |
---|---|---|
Data | (Inherited from Exception.) | |
HelpLink | (Inherited from Exception.) | |
HResult | (Inherited from Exception.) | |
InnerException | (Inherited from Exception.) | |
Message | (Inherited from Exception.) | |
Response | Gets the HTTP response to return to the client. | |
Source | (Inherited from Exception.) | |
StackTrace | (Inherited from Exception.) | |
TargetSite | (Inherited from Exception.) |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetBaseException | (Inherited from Exception.) | |
GetHashCode | (Inherited from Object.) | |
GetObjectData | Security Critical. (Inherited from Exception.) | |
GetType | (Inherited from Exception.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Exception.) |
Top
Events
Name | Description | |
---|---|---|
SerializeObjectState | (Inherited from Exception.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.