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

TargetUI reference with Exception #66

Open
chemickypes opened this issue Apr 10, 2017 · 1 comment
Open

TargetUI reference with Exception #66

chemickypes opened this issue Apr 10, 2017 · 1 comment

Comments

@chemickypes
Copy link

there is any way to get TargetUI reference on case of Error? Or, there is any way to create own Exceptions?

@miguelbcr
Copy link
Owner

Hi @chemickypes ,
Currently is not possible to get TargetUI when an error happened because the original exception is simply propagated, except when is an UserCanceledException or PermissionDeniedException which are created internally in order to detect both scenarios within the chain and then return a normal response by adding a response code to detect those scenarios. (see Worker class)

Maybe creating a custom Exception with TargetUI as member would be the solution.

I'll have it into account for the next release.
Thanks!

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

2 participants