Removed unneccesary error class