I think it would be a good idea if it was possible to define custom
exceptions that validation methods throw, instead of always throwing
The syntax could be something like this:
validates_presence_of :name, :exception => SomeException
It would allow for much more elegant code, in cases where it is
necessary to identify which validation failed. What do you think?
I wouldn't mind trying to implement this (in fact I'm very eager to do
so!) although I'd need some guidance.