add handleErrorWithPayloadData and docs in readme

This exposes a similar interface as reportMessageWithPayloadData, which can be used for reporting errors.