Added delegate version.

The delegate version exposes the thrown exception.