Added common error exception and changed exceptions to extend from it