Move handling of expected exception to rendering decorator