Translations:Manual:Writing testable PHP code/14/en

If your code encounters an unexpected error, the proper thing to do is throw an exception like: