andresteingress / gcontracts

GContracts: Programming by Contract for Groovy
http://gcontracts.org
114 stars 11 forks source link

Separate Exception Types for Pre-, Postconditions and Class Invariant Violations #22

Closed andresteingress closed 13 years ago

andresteingress commented 13 years ago

I need to throw and catch a exception instead of throw a assertion error.

For example RequiresException, EnsureException and InvariantException.

I need to generate pretty error messages for my users if some object don’t exists in the db.

With your currently implementation I can only catch the org.codehaus.groovy.transform.powerassert.PowerAssertionError

andresteingress commented 13 years ago

fixed in current trunk