onError

Called when error occurs.

Parameters

exception

Exception of error occurs