Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
HttpError Class
Collapse the table of content
Expand the table of content

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 sealed class HttpError : Dictionary<stringobject>, 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>.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodICollection<KeyValuePair<TKey, TValue>>.Add(KeyValuePair<TKey, TValue>)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodICollection<KeyValuePair<TKey, TValue>>.Contains(KeyValuePair<TKey, TValue>)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodICollection<KeyValuePair<TKey, TValue>>.CopyTo(KeyValuePair<TKey, TValue>[], Int32)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodICollection<KeyValuePair<TKey, TValue>>.Remove(KeyValuePair<TKey, TValue>)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator()

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodICollection.CopyTo(Array, Int32)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDictionary.Add(Object, Object)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDictionary.Contains(Object)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDictionary.GetEnumerator()

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDictionary.Remove(Object)

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable.GetEnumerator()

(Inherited from Dictionary<TKey, TValue>.)

System_CAPS_pubinterfaceSystem_CAPS_privmethodIXmlSerializable.GetSchema()

This method is reserved and should not be used.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIXmlSerializable.ReadXml(XmlReader)

Generates an HttpError instance from its XML representation.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIXmlSerializable.WriteXml(XmlWriter)

Converts an HttpError instance into its XML representation.

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:
© 2015 Microsoft