Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement: add args to "Fail" handler #4

Open
bibolorean opened this issue Oct 7, 2014 · 7 comments
Open

Improvement: add args to "Fail" handler #4

bibolorean opened this issue Oct 7, 2014 · 7 comments
Assignees

Comments

@bibolorean
Copy link

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')..

@ursenzler
Copy link
Member

@danielmarbach is there an easy way to add the arguments?

Or would we have to add them all manually :-O ?

Or do you see a problem passing the original arguments to the Fail methods?

@danielmarbach
Copy link
Member

You have to add them manually.

You mean apart from introducing breaking changes ;) no there shouldn't be any issues. You have the arguments all available. You just need to update the convention based invocation magic ;)

@bibolorean
Copy link
Author

I would have tried it on my fork.. but I didn't find the "text templating magic test" which would generate the wrappers with the new API.. ;-P

@danielmarbach
Copy link
Member

I think I deleted that one after it served its purpose

@ursenzler
Copy link
Member

Okay, I'll add the original arguments to the Fail* methods.

But it will take some time... (2 month or so due to little spare time ahead)

If you need a quick solution, let me know. We could arrange paid support probably.

@bibolorean
Copy link
Author

As it does also work with the TLS keeping the path - for the moment that's fine for me. But I still would love to see that change - then I could get rid of the variable keeping the path :)

@ursenzler ursenzler self-assigned this Apr 15, 2015
@ursenzler
Copy link
Member

This is implemented, but not yet merged. Appccelerate.IO 2.42.0-commitc61a1f4b on MyGet contains the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants