Properly throw the exception