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

how to set the :cause key for throw+ #50

Open
murtaza52 opened this issue Jan 29, 2015 · 1 comment
Open

how to set the :cause key for throw+ #50

murtaza52 opened this issue Jan 29, 2015 · 1 comment

Comments

@murtaza52
Copy link

Hi,

I have a try+ block which catches a throw+ error. Now I want to again throw+ exception but with a different type and message. How do I do that ?

From the readme it tells me to set the :cause key, so that it wont pick up the top most wrapper. I have tried doing that, but it is not working. Please help.

(defn is-connected? [](try+
%28amazonica.aws.ec2/describe-regions%29
%28catch Object _
%28throw+ {:type :almonds/aws-connection-error :cause :almonds/aws-connection-error :msg "connection error"}))))

@scgilardi
Copy link
Owner

Can you please comment with a simple example that shows the problem you're having. Please include what the result was and what you expected the result to be. Thanks.

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

No branches or pull requests

2 participants