Added sample exception and a test.