onErrorOccurred

The listener will be called with listener(details) when an error occurs.