GrailsInAction / graina2

Source code for the 2nd edition of Grails in Action
90 stars 93 forks source link

Page 159 first sentence #128

Closed MudassarBashir closed 9 years ago

MudassarBashir commented 9 years ago

The first sentence on page 159 reads as:

When exceptions are thrown that are part of your anticipated business logic, it’d be handy to reason about those exceptions.

Is this sentence trying to say it would be nice to know the reason why an exception is thrown? Is there a typo or am I missing something? Thanks.

glenasmith commented 9 years ago

Thanks for reporting. I think that is the correct sentence. When exceptions are thrown, Spock provides the thrown() keyword to help you assert the correct exception subclass is being thrown.

MudassarBashir commented 9 years ago

Understood. Thank you very much.