Test the default error handler.

Test that the default error handler throws an exception.