add error code and message to sending exceptions