Pavalisoft.ExceptionHandling  1.0.0
An Unified API for ASP.NET Core Global Exception handling with ExceptionManager
Pavalisoft.ExceptionHandling.ExceptionSettings Class Reference

Provides configuration structure for the Exception manager and its handlers including Exception details. More...

Properties

bool EnableLocalization [get, set]
 Gets or Sets flat to indicate enabling localization More...
 
bool EnableLogging [get, set]
 Gets or Sets flat to indicate enabling localization More...
 
string DefaulExceptiontHandler [get, set]
 Gets or Sets the default exception handler name More...
 
string DefaultErrorDetail [get, set]
 Gets or Sets the default error details name when no error code found More...
 
List< ErrorDetailErrorDetails [get, set]
 Gets or Sets the Error Details More...
 
List< ExceptionHandlerDefinitionExceptionHandlers [get, set]
 Gets or Sets the Exception Handler definitions More...
 

Detailed Description

Provides configuration structure for the Exception manager and its handlers including Exception details.

{ "Exceptions": { "EnableLocalization": "true", "EnableLogging": "true", "DefaultErrorDetail": "Default", "DefaulExceptiontHandler": "BaseHandler", "ErrorDetails": [ { "Name": "Default", "LogLevel": "Error", "ErrorCode": "6001", "StatusCode": "200", "Message": "Test", "HandlerName": "BaseHandler", "EventId": { "Id": "1", "Name": "General" }, "ViewName": "Error" } ], "ExceptionHandlers": [ { "Name": "BaseHandler", "HandlingBehaviour": "Supress", "HandlerData": "" } ] } }

Property Documentation

◆ DefaulExceptiontHandler

string Pavalisoft.ExceptionHandling.ExceptionSettings.DefaulExceptiontHandler
getset

Gets or Sets the default exception handler name

◆ DefaultErrorDetail

string Pavalisoft.ExceptionHandling.ExceptionSettings.DefaultErrorDetail
getset

Gets or Sets the default error details name when no error code found

◆ EnableLocalization

bool Pavalisoft.ExceptionHandling.ExceptionSettings.EnableLocalization
getset

Gets or Sets flat to indicate enabling localization

◆ EnableLogging

bool Pavalisoft.ExceptionHandling.ExceptionSettings.EnableLogging
getset

Gets or Sets flat to indicate enabling localization

◆ ErrorDetails

List<ErrorDetail> Pavalisoft.ExceptionHandling.ExceptionSettings.ErrorDetails
getset

Gets or Sets the Error Details

◆ ExceptionHandlers

List<ExceptionHandlerDefinition> Pavalisoft.ExceptionHandling.ExceptionSettings.ExceptionHandlers
getset

Gets or Sets the Exception Handler definitions


The documentation for this class was generated from the following file: