Enum IncludeErrorDetailPolicy
Specifies whether error details, such as exception messages and stack traces, should be included in error messages.
public enum IncludeErrorDetailPolicy
Fields
Always = 2
Always include error details.
Default = 0
Use the default behavior for the host environment. For ASP.NET hosting, use the value from the customErrors element in the Web.config file. For self-hosting, use the value LocalOnly.
LocalOnly = 1
Only include error details when responding to a local request.
Never = 3
Never include error details.