Implemented an exceptions class for every kind of error.