Export (0) Print
Expand All

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<string, Object>, 
	IXmlSerializable

The HttpError type exposes the following members.

  NameDescription
Public methodHttpError()Initializes a new instance of the HttpError class.
Public methodHttpError(String)Initializes a new instance of the HttpError class containing error message message.
Public methodHttpError(Exception, Boolean)Initializes a new instance of the HttpError class for exception.
Public methodHttpError(ModelStateDictionary, Boolean)Initializes a new instance of the HttpError class for modelState.
Top

  NameDescription
Public propertyComparer (Inherited from Dictionary<String, Object>.)
Public propertyCount (Inherited from Dictionary<String, Object>.)
Public propertyExceptionMessageGets or sets the message of the Exception if available.
Public propertyExceptionTypeGets or sets the type of the Exception if available.
Public propertyInnerExceptionGets the inner Exception associated with this instance if available.
Public propertyItem (Inherited from Dictionary<String, Object>.)
Public propertyKeys (Inherited from Dictionary<String, Object>.)
Public propertyMessageGets 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.
Public propertyMessageDetailGets or sets a detailed description of the error intended for the developer to understand exactly what failed.
Public propertyModelStateGets the ModelState containing information about the errors that occurred during model binding.
Public propertyStackTraceGets or sets the stack trace information associated with this instance if available.
Public propertyValues (Inherited from Dictionary<String, Object>.)
Top

  NameDescription
Public methodAdd (Inherited from Dictionary<String, Object>.)
Public methodClear (Inherited from Dictionary<String, Object>.)
Public methodContainsKey (Inherited from Dictionary<String, Object>.)
Public methodContainsValue (Inherited from Dictionary<String, Object>.)
Public methodEquals (Inherited from Object.)
Public methodGetEnumerator (Inherited from Dictionary<String, Object>.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetObjectDataSecurity Critical. (Inherited from Dictionary<String, Object>.)
Public methodGetPropertyValue<TValue>Gets a particular property value from this error instance.
Public methodGetType (Inherited from Object.)
Public methodOnDeserialization (Inherited from Dictionary<String, Object>.)
Public methodRemove (Inherited from Dictionary<String, Object>.)
Public methodToString (Inherited from Object.)
Public methodTryGetValue (Inherited from Dictionary<String, Object>.)
Top

  NameDescription
Public Extension MethodCreateODataError()Overloaded. Converts the httpError to an ODataError. (Defined by HttpErrorExtensions.)
Public Extension MethodCreateODataError()Overloaded. Converts the httpError to an ODataError. (Defined by HttpErrorExtensions.)
Public Extension MethodToODataErrorConverts the httpError to an ODataError. (Defined by ODataHttpErrorExtensions.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIXmlSerializable.GetSchemaThis method is reserved and should not be used.
Explicit interface implemetationPrivate methodIXmlSerializable.ReadXmlGenerates an HttpError instance from its XML representation.
Explicit interface implemetationPrivate methodIXmlSerializable.WriteXmlConverts an HttpError instance into its XML representation.
Explicit interface implemetationPrivate methodICollection<KeyValuePair<TKey, TValue>>.Add (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate methodIDictionary.Add (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate methodICollection<KeyValuePair<TKey, TValue>>.Contains (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate methodIDictionary.Contains (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate methodICollection<KeyValuePair<TKey, TValue>>.CopyTo (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate methodICollection.CopyTo (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate methodIEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate methodIEnumerable.GetEnumerator (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate methodIDictionary.GetEnumerator (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate propertyIDictionary.IsFixedSize (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate propertyICollection<KeyValuePair<TKey, TValue>>.IsReadOnly (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate propertyIDictionary.IsReadOnly (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate propertyICollection.IsSynchronized (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate propertyIDictionary.Item (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate propertyIDictionary<TKey, TValue>.Keys (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate propertySystem#Collections#Generic#IReadOnlyDictionary{TKey@TValue}#Keys (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate propertyIDictionary.Keys (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate methodICollection<KeyValuePair<TKey, TValue>>.Remove (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate methodIDictionary.Remove (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate propertyICollection.SyncRoot (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate propertyIDictionary<TKey, TValue>.Values (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate propertySystem#Collections#Generic#IReadOnlyDictionary{TKey@TValue}#Values (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate propertyIDictionary.Values (Inherited from Dictionary<String, Object>.)
Top

No content here will be updated; please do not add material here.

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