CSLA .NET 10.0.0
A home for your business logic
Loading...
Searching...
No Matches
Csla.Server.SanitizingExceptionInspector Class Reference

Sanitizing implementation of exception inspector, for hiding sensitive information in exception details. More...

Inheritance diagram for Csla.Server.SanitizingExceptionInspector:
Csla.Server.IDataPortalExceptionInspector

Public Member Functions

 SanitizingExceptionInspector (IHostEnvironment environment, ApplicationContext applicationContext, ILogger< SanitizingExceptionInspector > logger)
 Constructor.
void InspectException (Type objectType, object? businessObject, object? criteria, string methodName, Exception ex)
 Logs the exception that occurred during DataPortal call, then throws a generic, less detailed exception for return to the client.

Detailed Description

Sanitizing implementation of exception inspector, for hiding sensitive information in exception details.

Only sanitizes exceptions from remote data portals

Constructor & Destructor Documentation

◆ SanitizingExceptionInspector()

Csla.Server.SanitizingExceptionInspector.SanitizingExceptionInspector ( IHostEnvironment environment,
ApplicationContext applicationContext,
ILogger< SanitizingExceptionInspector > logger )
inline

Constructor.

Parameters
environmentThe host environment in which we are operating
applicationContextThe context of the current request
loggerThe logger to which to log exceptions
Exceptions
ArgumentNullExceptionenvironment , applicationContext or logger is null.

Member Function Documentation

◆ InspectException()

void Csla.Server.SanitizingExceptionInspector.InspectException ( Type objectType,
object? businessObject,
object? criteria,
string methodName,
Exception ex )
inline

Logs the exception that occurred during DataPortal call, then throws a generic, less detailed exception for return to the client.

Parameters
objectTypeType of the object.
businessObjectThe business object, if available.
criteriaThe criteria.
methodNameName of the method.
exThe exception.

Implements Csla.Server.IDataPortalExceptionInspector.


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