Custom error class

It was a requirement in our project to have a different class for some rules. To do this we have to have rich error objects in place of string ones. Do you think that it is possible to merge it to the main repo?