Function AsyncSocketCallback.onError

abstract void onError(
  AsyncSocket socket,
  SocketError error,
  string msg
);