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.
Assembly: System.Web.Http (in System.Web.Http.dll)
| Name | Description | |
|---|---|---|
![]() | HttpError() | Initializes a new instance of the HttpError class. |
![]() | HttpError(Exception^, Boolean) | Initializes a new instance of the HttpError class for exception. |
![]() | HttpError(ModelStateDictionary^, Boolean) | Initializes a new instance of the HttpError class for modelState. |
![]() | HttpError(String^) | Initializes a new instance of the HttpError class containing error message message. |
| Name | Description | |
|---|---|---|
![]() | Comparer | (Inherited from Dictionary<TKey, TValue>.) |
![]() | Count | (Inherited from Dictionary<TKey, TValue>.) |
![]() | ExceptionMessage | Gets or sets the message of the Exception if available. |
![]() | ExceptionType | Gets or sets the type of the Exception if available. |
![]() | InnerException | Gets the inner Exception associated with this instance if available. |
![]() | Item[TKey] | (Inherited from Dictionary<TKey, TValue>.) |
![]() | Keys | (Inherited from Dictionary<TKey, TValue>.) |
![]() | Message | 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. |
![]() | MessageDetail | Gets or sets a detailed description of the error intended for the developer to understand exactly what failed. |
![]() | ModelState | Gets the ModelState containing information about the errors that occurred during model binding. |
![]() | StackTrace | Gets or sets the stack trace information associated with this instance if available. |
![]() | Values | (Inherited from Dictionary<TKey, TValue>.) |
| Name | Description | |
|---|---|---|
![]() | Add(TKey, TValue) | (Inherited from Dictionary<TKey, TValue>.) |
![]() | Clear() | (Inherited from Dictionary<TKey, TValue>.) |
![]() | ContainsKey(TKey) | (Inherited from Dictionary<TKey, TValue>.) |
![]() | ContainsValue(TValue) | (Inherited from Dictionary<TKey, TValue>.) |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | GetEnumerator() | (Inherited from Dictionary<TKey, TValue>.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetObjectData(SerializationInfo^, StreamingContext) | (Inherited from Dictionary<TKey, TValue>.) |
![]() | GetPropertyValue<TValue>(String^) | Gets a particular property value from this error instance. |
![]() | GetType() | (Inherited from Object.) |
![]() | OnDeserialization(Object^) | (Inherited from Dictionary<TKey, TValue>.) |
![]() | Remove(TKey) | (Inherited from Dictionary<TKey, TValue>.) |
![]() | ToString() | (Inherited from Object.) |
![]() | TryGetValue(TKey, TValue) | (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.



