Examples of MessagingNetworkException


Examples of org.openmim.mn.MessagingNetworkException

      msg = tlvlist.getNthTlvOfTypeAsString(1, 0x000b);
    if (Defines.DEBUG && CAT.isDebugEnabled()) CAT.debug("rx_handleConnectionError: message=\"" + msg + "\", errCode=" + code);
    if (code == 0x0001)
    {
      if (Defines.DEBUG && CAT.isDebugEnabled()) CAT.debug("rx_handleConnectionError: errCode=0x0001, used on another computer.");
      throw new MessagingNetworkException(
        "Logged off: your ICQ number is probably used on another computer.",
        MessagingNetworkException.CATEGORY_LOGGED_OFF_YOU_LOGGED_ON_FROM_ANOTHER_COMPUTER,
        MessagingNetworkException.ENDUSER_LOGGED_OFF_YOU_LOGGED_ON_FROM_ANOTHER_COMPUTER);
    }
  }
View Full Code Here

Examples of org.openmim.mn.MessagingNetworkException

          case AIM_CB_BUD_OFFGOING : //0x0003/0x000c
          {
            String screenName = aimutil_getString(snacData, 0);
            if (Defines.DEBUG && CAT.isDebugEnabled()) CAT.debug("rxdispatch_switch(): '" + screenName + "' changed status to " + StatusUtil.translateStatusOscarToString(StatusUtil.OSCAR_STATUS_OFFLINE));
            if (loginId.equals(screenName))
              throw new MessagingNetworkException(
                "icq server reported you as offline",
                MessagingNetworkException.CATEGORY_LOGGED_OFF_ON_BEHALF_OF_MESSAGING_SERVER_OR_PROTOCOL_ERROR,
                MessagingNetworkException.ENDUSER_LOGGED_OFF_ICQ_SERVER_REPORTED_YOU_AS_OFFLINE);
            else
              setContactStatus_Oscar(screenName, StatusUtil.OSCAR_STATUS_OFFLINE, ctx, MessagingNetworkException.CATEGORY_NOT_CATEGORIZED, null);
View Full Code Here

Examples of org.openmim.mn.MessagingNetworkException

            //contactListUinInt2cli = null;
            synchronized (lastErrorLock)
            {
              if (lastError == null)
              {
                setLastError(new MessagingNetworkException(reasonMessage, reasonLogger, endUserReasonCode));
              }
            }
          }
          if (op != null) op.muteFailureEvent();
          fireSessionStatusChangeMim_Uncond(newStatus_Mim, ctx, reasonLogger, reasonMessage, endUserReasonCode);
View Full Code Here

Examples of org.openmim.mn.MessagingNetworkException

  {
    checkShuttingdown();

    if (System.currentTimeMillis() >= stopTime)
    {
      throw new MessagingNetworkException(
        "icq server operation timed out: " + operationDetails,
        MessagingNetworkException.CATEGORY_LOGGED_OFF_ON_BEHALF_OF_MESSAGING_SERVER_OR_PROTOCOL_ERROR,
        MessagingNetworkException.ENDUSER_LOGGED_OFF_DUE_TO_MESSAGING_OPERATION_TIMEOUT);
    }
  }
View Full Code Here

Examples of org.openmim.mn.MessagingNetworkException

          return result;
        }
        else
        {
          if (this.userDetailsUnknownFormat)
            throw new MessagingNetworkException(
              "error while user search: cannot parse packet.",
              MessagingNetworkException.CATEGORY_STILL_CONNECTED,
              MessagingNetworkException.ENDUSER_PROTOCOL_ERROR_NOT_LOGGED_OFF);
          else
          if (this.errorFetchinguserDetails)
            throw new MessagingNetworkException(
              "icq server reports error while user search.",
              MessagingNetworkException.CATEGORY_STILL_CONNECTED,
              MessagingNetworkException.ENDUSER_MESSAGING_SERVER_REFUSES_TO_RETURN_USER_SEARCH_RESULTS);
          else
            throw new MessagingNetworkException(
              "error while user search: response timeout expired.",
              MessagingNetworkException.CATEGORY_STILL_CONNECTED,
              MessagingNetworkException.ENDUSER_MESSAGING_OPERATION_TIMED_OUT_NOT_LOGGED_OFF);
        }
      }
View Full Code Here

Examples of org.openmim.mn.MessagingNetworkException

    //nick FE first FE last FE email FE unk-char FE msg
    //msg-type: 06  user-msg  authorization request
    if (text == null) text = "";
    byte[] b = string2byteArray(text);
    if (b.length > 7000)
      throw new MessagingNetworkException("message length must be <= 7000, but it is "+b.length+" bytes long",
        MessagingNetworkException.CATEGORY_STILL_CONNECTED,
        MessagingNetworkException.ENDUSER_TEXT_MESSAGE_IS_TOO_LONG);
    ByteArrayOutputStream bas = new ByteArrayOutputStream(b.length+6);
    bas.write(new byte[] {(byte) 0xfe, (byte) 0xfe, (byte) 0xfe, (byte) 0xfe});
    bas.write((byte) (this.authorizationRequired ? 31 : 30));
View Full Code Here

Examples of org.openmim.mn.MessagingNetworkException

      });
    }
  }
  public UserDetails getUserDetails(String srcLoginId, String dstLoginId) throws MessagingNetworkException
  {
    throw new MessagingNetworkException("TODO: not implemented", MessagingNetworkException.CATEGORY_STILL_CONNECTED, MessagingNetworkException.ENDUSER_NO_ERROR);
  }
View Full Code Here

Examples of org.openmim.mn.MessagingNetworkException

  {
    throw new MessagingNetworkException("TODO: not implemented", MessagingNetworkException.CATEGORY_STILL_CONNECTED, MessagingNetworkException.ENDUSER_NO_ERROR);
  }
  public void sendContacts(String srcLoginId, String dstLoginId, String[] nicks, String[] loginIds) throws MessagingNetworkException
  {
    throw new MessagingNetworkException("TODO: not implemented", MessagingNetworkException.CATEGORY_STILL_CONNECTED, MessagingNetworkException.ENDUSER_NO_ERROR);
  }
View Full Code Here

Examples of org.openmim.mn.MessagingNetworkException

    String emailSearchPattern,
    String nickSearchPattern,
    String firstNameSearchPattern,
    String lastNameSearchPattern) throws MessagingNetworkException
  {
    throw new MessagingNetworkException("TODO: not implemented", MessagingNetworkException.CATEGORY_STILL_CONNECTED, MessagingNetworkException.ENDUSER_NO_ERROR);
  }
View Full Code Here

Examples of org.openmim.mn.MessagingNetworkException

    throw new MessagingNetworkException("TODO: not implemented", MessagingNetworkException.CATEGORY_STILL_CONNECTED, MessagingNetworkException.ENDUSER_NO_ERROR);
  }
  public boolean isAuthorizationRequired(String srcLoginId, String dstLoginId)
      throws MessagingNetworkException
  {
    throw new MessagingNetworkException("TODO: not implemented", MessagingNetworkException.CATEGORY_STILL_CONNECTED, MessagingNetworkException.ENDUSER_NO_ERROR);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.