Add interface `captureWithError:` and `captureWithException`

Modify to be able to send NSException and NSError.