painterjd / stoplight

Stoplight -- An Input Validation Framework for Python
Apache License 2.0
15 stars 5 forks source link

Pass ValidationFailure exceptions to error handlers #7

Closed painterjd closed 9 years ago

painterjd commented 9 years ago

Currently, error handlers have no context or idea as to why a validation actually failed. Expose the underlying ValidationFailed exception to the error handler in a clever way without breaking existing users.