/**
  * An error has occurred.
  *
  * @throws XMPPException
  */
 public void eventError(IQ iq) throws XMPPException {
   triggerSessionClosedOnError(new XMPPException(iq.getError().getMessage()));
   super.eventError(iq);
 }
 /**
  * An error has occurred.
  *
  * @throws XMPPException
  */
 public void eventError(IQ iq) throws XMPPException {
   if (iq == null) return;
   triggerSessionClosedOnError(new XMPPException(iq.getError()));
   super.eventError(iq);
 }