Fix a bug passing the exception object.

A pointer to the exception object seems to be expected here.