Share via


HttpError Class

Defines a serializable container for arbitrary error information.

Inheritance Hierarchy

System.Object
  System.Collections.Generic.Dictionary<String, Object>
    System.Web.Http.HttpError

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

Syntax

'Declaration
Public NotInheritable Class HttpError _
    Inherits Dictionary(Of String, Object) _
    Implements IXmlSerializable
'Usage
Dim instance As HttpError
public sealed class HttpError : Dictionary<string, Object>, 
    IXmlSerializable
public ref class HttpError sealed : public Dictionary<String^, Object^>, 
    IXmlSerializable
[<SealedAttribute>]
type HttpError =  
    class 
        inherit Dictionary<string, Object>
        interface IXmlSerializable 
    end
public final class HttpError extends Dictionary<String, Object> implements IXmlSerializable

The HttpError type exposes the following members.

Constructors

  Name Description
Public method HttpError() Initializes a new instance of the HttpError class.
Public method HttpError(String) Initializes a new instance of the HttpError class containing error message message.
Public method HttpError(Exception, Boolean) Initializes a new instance of the HttpError class for exception.
Public method HttpError(ModelStateDictionary, Boolean) Initializes a new instance of the HttpError class for modelState.

Top

Properties

  Name Description
Public property Comparer (Inherited from Dictionary<String, Object>.)
Public property Count (Inherited from Dictionary<String, Object>.)
Public property Item (Inherited from Dictionary<String, Object>.)
Public property Keys (Inherited from Dictionary<String, Object>.)
Public property Message The error message associated with this instance.
Public property Values (Inherited from Dictionary<String, Object>.)

Top

Methods

  Name Description
Public method Add (Inherited from Dictionary<String, Object>.)
Public method Clear (Inherited from Dictionary<String, Object>.)
Public method ContainsKey (Inherited from Dictionary<String, Object>.)
Public method ContainsValue (Inherited from Dictionary<String, Object>.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator (Inherited from Dictionary<String, Object>.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData Security Critical. (Inherited from Dictionary<String, Object>.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method OnDeserialization (Inherited from Dictionary<String, Object>.)
Public method Remove (Inherited from Dictionary<String, Object>.)
Public method ToString (Inherited from Object.)
Public method TryGetValue (Inherited from Dictionary<String, Object>.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IXmlSerializable.GetSchema This method is reserved and should not be used.
Explicit interface implemetationPrivate method IXmlSerializable.ReadXml Generates an HttpError instance from its XML representation.
Explicit interface implemetationPrivate method IXmlSerializable.WriteXml Converts an HttpError instance into its XML representation.
Explicit interface implemetationPrivate method ICollection<KeyValuePair<TKey, TValue>>.Add (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate method IDictionary.Add (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate method ICollection<KeyValuePair<TKey, TValue>>.Contains (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate method IDictionary.Contains (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate method ICollection<KeyValuePair<TKey, TValue>>.CopyTo (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate method ICollection.CopyTo (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate method IEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate method IDictionary.GetEnumerator (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate property IDictionary.IsFixedSize (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate property ICollection<KeyValuePair<TKey, TValue>>.IsReadOnly (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate property IDictionary.IsReadOnly (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate property ICollection.IsSynchronized (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate property IDictionary.Item (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate property IDictionary<TKey, TValue>.Keys (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate property System#Collections#Generic#IReadOnlyDictionary{TKey@TValue}#Keys (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate property IDictionary.Keys (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate method ICollection<KeyValuePair<TKey, TValue>>.Remove (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate method IDictionary.Remove (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate property ICollection.SyncRoot (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate property IDictionary<TKey, TValue>.Values (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate property System#Collections#Generic#IReadOnlyDictionary{TKey@TValue}#Values (Inherited from Dictionary<String, Object>.)
Explicit interface implemetationPrivate property IDictionary.Values (Inherited from Dictionary<String, Object>.)

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.

See Also

Reference

System.Web.Http Namespace