Register a listener that will be called when the Ajax request failed.
The listener shall be function (response, errCode)
where response is an instance of response from Fetch API,
and errCode is the error code.
Furthermore, the listener could return true to ignore the error.
In other words, if true is returned, the error is ignored (the
listeners registered after won't be called either).
Notice that response.status might be 200, since ZK might send the error
back with the ZK-Error header.
Register a listener that will be called when the Ajax request failed. The listener shall be
function (response, errCode)
where response is an instance of response from Fetch API, and errCode is the error code. Furthermore, the listener could return true to ignore the error. In other words, if true is returned, the error is ignored (the listeners registered after won't be called either).
Notice that response.status might be 200, since ZK might send the error back with the ZK-Error header.
To remove the listener, use unError.