Updated error message in exceptions