Skip to content

SAIF.NetCore.ErrorHandler API reference

This page lists all public types exposed by SAIF.NetCore.ErrorHandler. Each type links to its full API reference page.

Types

Type Kind Namespace Purpose
IErrorHandler Interface SAIF.NetCore.Services.ErrorHandler Marker contract (extends IErrorHandleable) for the ASP.NET Core exception-to-response translator.
ErrorHandler Class SAIF.NetCore.Services.ErrorHandler Implements IErrorHandler; logs an exception and writes the HTTP error response, including the legacy [Obsolete] middleware entry point.
IStandardErrorContent Interface SAIF.NetCore.Services.ErrorHandler Local error-content contract duplicating ServiceContracts IStandardErrorLogInfo minus ID; implemented by WindowsServiceError but has no other in-repository consumer.
ExceptionExtensions Static class SAIF.NetCore.Services.ErrorHandler Extension methods that flatten exception stack traces and extract SAIFException.LogDetails as strings.
WindowsServiceErrorHandler Class SAIF.NetCore.Services.ErrorHandler.WindowsService Implements IWindowsServiceErrorHandler; builds, logs, and distributes a Windows Service error through events and pluggable special actions.
WindowsServiceError Class SAIF.NetCore.Services.ErrorHandler.WindowsService Implements IStandardErrorContent and IWindowsServiceError; formats the identity, timestamp, exception, and log details into the logged error text.
SpecialErrorAction Class SAIF.NetCore.Services.ErrorHandler.WindowsService Delegate wrapper with an optional fire-condition predicate; invoked by WindowsServiceErrorHandler. Only the wrapped delegate call is caught — the fire-condition predicate can still throw uncaught.
SpecialErrorAction\<T> Class SAIF.NetCore.Services.ErrorHandler.WindowsService Typed subclass of SpecialErrorAction that fires only on an exact exception-type match.
ContextContainer Class SAIF.NetCore.Services.ErrorHandler.WindowsService Implements IErrorContextContainer; string-keyed object bag passed to special actions during error handling.

Sources

  • src/SAIF.NetCore.ErrorHandler/SAIF.NetCore.ErrorHandler/SAIF.NetCore.ErrorHandler/IErrorHandler.cs
  • src/SAIF.NetCore.ErrorHandler/SAIF.NetCore.ErrorHandler/SAIF.NetCore.ErrorHandler/ErrorHandler.cs
  • src/SAIF.NetCore.ErrorHandler/SAIF.NetCore.ErrorHandler/SAIF.NetCore.ErrorHandler/IStandardErrorContent.cs
  • src/SAIF.NetCore.ErrorHandler/SAIF.NetCore.ErrorHandler/SAIF.NetCore.ErrorHandler/ExceptionExtensions.cs
  • src/SAIF.NetCore.ErrorHandler/SAIF.NetCore.ErrorHandler/SAIF.NetCore.ErrorHandler/WindowsService/WindowsServiceErrorHandler.cs
  • src/SAIF.NetCore.ErrorHandler/SAIF.NetCore.ErrorHandler/SAIF.NetCore.ErrorHandler/WindowsService/WindowsServiceError.cs
  • src/SAIF.NetCore.ErrorHandler/SAIF.NetCore.ErrorHandler/SAIF.NetCore.ErrorHandler/WindowsService/SpecialErrorAction.cs
  • src/SAIF.NetCore.ErrorHandler/SAIF.NetCore.ErrorHandler/SAIF.NetCore.ErrorHandler/WindowsService/ContextContainer.cs