Skip to content

Improvement: add args to "Fail" handler #4

@bibolorean

Description

@bibolorean

Currently one can't access the original supplied arguments in a fail handler.
But especially if you want to modify the exception to contain some more information (related to arguments) it would be very nice to have access on those.

In my environment, we are using your library to add operational tracing and an exception re-writer extension to File & Directory. So whenever a call to one of those fails, we create a new Exception containing the "path" tried to access (to improve the logs. E.g. tell the Sysadmin: 'Hey, access on blabla failed because of UnauthorizedAccessException')..

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions