Change the exception thrown