![]() |
CSLA .NET 10.0.0
A home for your business logic
|
Sanitizing implementation of exception inspector, for hiding sensitive information in exception details. More...
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. | |
Sanitizing implementation of exception inspector, for hiding sensitive information in exception details.
Only sanitizes exceptions from remote data portals
|
inline |
Constructor.
| environment | The host environment in which we are operating |
| applicationContext | The context of the current request |
| logger | The logger to which to log exceptions |
| ArgumentNullException | environment , applicationContext or logger is null. |
|
inline |
Logs the exception that occurred during DataPortal call, then throws a generic, less detailed exception for return to the client.
| objectType | Type of the object. |
| businessObject | The business object, if available. |
| criteria | The criteria. |
| methodName | Name of the method. |
| ex | The exception. |
Implements Csla.Server.IDataPortalExceptionInspector.