intridea/grape — pull request #221 by adamgotterer (2012-08-01 19:04:01+00:00)
Title: Added custom exceptions to Grape. Updated validation errors to use ValidationError.

Custom exceptions should extend Grape:: Exceptions::Base. The current error/exception handler will treat the base class the same way that it treats :error. Anything extending Base can be rescued and acts like a more traditional exception. Converted Validation errors to use ValidationError, which is now an exception available anywhere in Grape.

Would love to hear thoughts and suggestions if there is room for improvement.

Original comment thread and concept from #201.