Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpError Class

 

Defines a serializable container for storing error information. This information is stored as key/value pairs. The dictionary keys to look up standard error information are available on the HttpErrorKeys type.

Namespace:   System.Web.Http
Assembly:  System.Web.Http (in System.Web.Http.dll)


[XmlRootAttribute("Error")]
public ref class HttpError sealed : Dictionary<String^, Object^>, 
	IXmlSerializable

NameDescription
System_CAPS_pubmethodHttpError()

Initializes a new instance of the HttpError class.

System_CAPS_pubmethodHttpError(Exception^, Boolean)

Initializes a new instance of the HttpError class for exception.

System_CAPS_pubmethodHttpError(ModelStateDictionary^, Boolean)

Initializes a new instance of the HttpError class for modelState.

System_CAPS_pubmethodHttpError(String^)

Initializes a new instance of the HttpError class containing error message message.

NameDescription
System_CAPS_pubpropertyComparer

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubpropertyCount

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubpropertyExceptionMessage

Gets or sets the message of the Exception if available.

System_CAPS_pubpropertyExceptionType

Gets or sets the type of the Exception if available.

System_CAPS_pubpropertyInnerException

Gets the inner Exception associated with this instance if available.

System_CAPS_pubpropertyItem[TKey]

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubpropertyKeys

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubpropertyMessage

Gets or sets the high-level, user-visible message explaining the cause of the error. Information carried in this field should be considered public in that it will go over the wire regardless of the IncludeErrorDetailPolicy. As a result care should be taken not to disclose sensitive information about the server or the application.

System_CAPS_pubpropertyMessageDetail

Gets or sets a detailed description of the error intended for the developer to understand exactly what failed.

System_CAPS_pubpropertyModelState

Gets the ModelState containing information about the errors that occurred during model binding.

System_CAPS_pubpropertyStackTrace

Gets or sets the stack trace information associated with this instance if available.

System_CAPS_pubpropertyValues

(Inherited from Dictionary<TKey, TValue>.)

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: