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

Terrible error message from throws matcher #24

Open
npryce opened this issue Mar 14, 2017 · 1 comment
Open

Terrible error message from throws matcher #24

npryce opened this issue Mar 14, 2017 · 1 comment

Comments

@npryce
Copy link
Owner

npryce commented Mar 14, 2017

No description provided.

@npryce npryce changed the title Terrible error message from throws matcher Terrible error message from throws matcher Mar 14, 2017
@charleskorn
Copy link

Not sure if this is the same thing or not, but it would be great if the throws() matcher could include details of the exception if it doesn't match the expected type. At the moment, if the expectation is for say a FileNotFoundException, but a ArgumentException is thrown instead, all the error message gives you is the type of the actual exception (ArgumentException) with no further details. Including details like the message and stack trace would be very helpful.

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