Catch the thrown exception