HttpErrorKeys Class

Provides keys to look up error information stored in the System.Web.Http.HttpError dictionary.

Namespace
System.Web.Http
Assemblies
  • Microsoft.AspNetCore.Mvc.WebApiCompatShim

Syntax

public class HttpErrorKeys
class System.Web.Http.HttpErrorKeys

Fields

ErrorCodeKey()

Provides a key for the ErrorCode.

Return type:System.String
public static readonly string ErrorCodeKey
ExceptionMessageKey()

Provides a key for the ExceptionMessage.

Return type:System.String
public static readonly string ExceptionMessageKey
ExceptionTypeKey()

Provides a key for the ExceptionType.

Return type:System.String
public static readonly string ExceptionTypeKey
InnerExceptionKey()

Provides a key for the InnerException.

Return type:System.String
public static readonly string InnerExceptionKey
MessageDetailKey()

Provides a key for the MessageDetail.

Return type:System.String
public static readonly string MessageDetailKey
MessageKey()

Provides a key for the Message.

Return type:System.String
public static readonly string MessageKey
MessageLanguageKey()

Provides a key for the MessageLanguage.

Return type:System.String
public static readonly string MessageLanguageKey
ModelStateKey()

Provides a key for the ModelState.

Return type:System.String
public static readonly string ModelStateKey
StackTraceKey()

Provides a key for the StackTrace.

Return type:System.String
public static readonly string StackTraceKey