Added a JUnit test for handlers throwing exceptions. JavaDoc was updated
correspondingly.