serby/crud-service — pull request #8 by OliverJAsh (2013-11-05 20:01:36+00:00)
Title: Use ValidationError instead of Error

Upon handling errors from crud-service, I want to know what type they are so I can choose how to deal with them. This was possible before by checking if `error.message === 'Validation Error'`, but I wasn't happy with this use of the error message.

With this change, I can instead check against the `name` property.