More specific error

Exception class is too general