-
Notifications
You must be signed in to change notification settings - Fork 116
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
How about Kind.Exception #153
Comments
Hi @jerviscui , thanks for the suggestion! your suggestion is definitely doable , but sometimes ago there were talks about getting rid of everything except Kind.Around in favor of stability and robustness |
omg, just realized you posted in April, I'm so sorry)) |
It doesn't matter. |
Thank you!
|
Since this Thread has been silent for quite a while I'd like to chime in and give some suggestions/opinions in hopes of this feature being released someday: Choosing exceptions could likely be done by requiring the Attribute to implement some kind of Method/Interface through which the Types could be gathered. Alternatively with the upcoming generic Attributes there could be a required generic Parameter on the Attribute which could then be read in some form like triggers are currently. Rethrow should imo be opt-in since Exception handling should be assumed to actually "handle" the Exception in some way In general rethrowing should probably be something like how BackgroundWorker in Winforms goes about it by catching any exception and providing it to the Something like In an optimal world this would also not modify the stacktrace like |
Thank you for input, I assure you this feature is on the table we're looking into it |
Now, if want to get Exception must be add a Kind.Around Advice.
It will create code like:
The rethrow Exception has waves method stack, just like:
Perhaps, let Kind.Exception Advice waves into target method,
and Task method,
Just a thought.
Thankyou.
The text was updated successfully, but these errors were encountered: