Examples of MessagingNetworkException


Examples of org.openmim.mn.MessagingNetworkException

    throw new MessagingNetworkException("TODO: not implemented", MessagingNetworkException.CATEGORY_STILL_CONNECTED, MessagingNetworkException.ENDUSER_NO_ERROR);
  }
  public void authorizationRequest(String srcLoginId, String dstLoginId, String reason)
      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 authorizationResponse(String srcLogin, String dstLogin, boolean grant)
      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

  { return cellPhone; }

  public boolean isCellPhoneSMSEnabled() throws MessagingNetworkException
  {
    if (cellPhone == null)
      throw new MessagingNetworkException(
        "Illegal state: cell phone must not be null here, but it is.",
        MessagingNetworkException.CATEGORY_NOT_CATEGORIZED,
        MessagingNetworkException.ENDUSER_MIM_BUG);
    return cellPhoneSMSEnabled;
  }
View Full Code Here

Examples of org.openmim.mn.MessagingNetworkException

      {
        if (Defines.DEBUG && CAT.isEnabledFor(org.apache.log4j.Level.WARN)) CAT.warn(LOG_PREFIX+ "[" + srcLoginId + "] logout: session already logged out, request ignored");
        return;
      }
      session.setLastError(
          new MessagingNetworkException(
            "logout requested by caller",
            MessagingNetworkException.CATEGORY_LOGGED_OFF_ON_BEHALF_OF_MESSAGING_PLUGIN_LOGOUT_CALLER,
            endUserReason)
      );
    }
View Full Code Here

Examples of org.openmim.mn.MessagingNetworkException

        {
          wait();
        }
        catch (InterruptedException ix)
        {
          MessagingNetworkException mex = new MessagingNetworkException(
            "(thread interrupted) global aop limit reached, aop rejected",
            (overflowLogsOff ?
              MessagingNetworkException.CATEGORY_NOT_CATEGORIZED :
              MessagingNetworkException.CATEGORY_STILL_CONNECTED),
            (overflowLogsOff ?
              MessagingNetworkException.ENDUSER_OPERATION_REJECTED_SERVER_TOO_BUSY_LOGGED_OFF :
              MessagingNetworkException.ENDUSER_OPERATION_REJECTED_SERVER_TOO_BUSY_NOT_LOGGED_OFF)
          );
          throw mex;
        }
      }
      else
      {
        MessagingNetworkException mex = new MessagingNetworkException(
          "global aop limit reached, aop rejected",
          (overflowLogsOff ?
            MessagingNetworkException.CATEGORY_NOT_CATEGORIZED :
            MessagingNetworkException.CATEGORY_STILL_CONNECTED),
          (overflowLogsOff ?
View Full Code Here

Examples of org.openmim.mn.MessagingNetworkException

    //tr.p rintStackTrace(pw);
    //pw.flush();
    //sw.flush();
    if (tr instanceof MessagingNetworkException)
    {
      MessagingNetworkException mex = (MessagingNetworkException) tr;
      log(getMyLoginId() + " reports exception:\r\n  " + tr.getClass().getName() + "\r\n  end user message: [" + mex.getEndUserReasonMessage()+"]\r\n  message: "+tr.getMessage()); //sw.toString());
    }
    else
      log(getMyLoginId() + " reports an unknown exception\r\n(BUG! should be a MessagingNetworkException):\r\n  " + tr.getClass().getName() + "\r\n  message: "+tr.getMessage()); //sw.toString());
  }
View Full Code Here

Examples of org.openmim.mn.MessagingNetworkException

    }
  }

  protected void throwStillReconnecting() throws MessagingNetworkException
  {
    throw new MessagingNetworkException(
      "network error occured, please wait for the mim server to reconnect",
      MessagingNetworkException.CATEGORY_STILL_CONNECTED,
      MessagingNetworkException.ENDUSER_NETWORK_ERROR_RECONNECTING);
  }
View Full Code Here

Examples of org.openmim.mn.MessagingNetworkException

        {
          Session ses = (Session) e.nextElement();
          try
          {
            ses.setLastError(
              new MessagingNetworkException(
                "mim server restarts",
                MessagingNetworkException.CATEGORY_LOGGED_OFF_ON_BEHALF_OF_MESSAGING_PLUGIN_ADMIN,
                MessagingNetworkException.ENDUSER_LOGGED_OFF_ON_BEHALF_OF_MESSAGING_PLUGIN_ADMIN));
            ses.logout(ctx,
              MessagingNetworkException.CATEGORY_LOGGED_OFF_ON_BEHALF_OF_MESSAGING_PLUGIN_ADMIN,
View Full Code Here

Examples of org.openmim.mn.MessagingNetworkException

  public void errorServerResponse(ErrorInfo errorInfo, String args, TransactionContext tctx, Session ses, PluginContext pctx)
  throws IOException, InterruptedException, MessagingNetworkException
  {
    //unhandled error responses close the current ServerConnection
    MessagingNetworkException ex = Errors.createException(errorInfo);
    finish(ex);
    if (tctx.isNS())
    {
      if (errorInfo.killNS)
        tctx.closeServerConnection(ex.getMessage(), ex.getLogger(), ex.getEndUserReasonCode());
    }
    else
    {
      if (errorInfo.killSSS)
        tctx.closeServerConnection(ex.getMessage(), ex.getLogger(), ex.getEndUserReasonCode());
    }
    throw Errors.createException(errorInfo);
  }
View Full Code Here

Examples of org.openmim.mn.MessagingNetworkException

    if (System.currentTimeMillis() >= stopTime)
    {
      if (!finished)
      {
        if (timeoutDoesLogoff)
          finish(new MessagingNetworkException("t #"+trid+" expired",
            MessagingNetworkException.CATEGORY_LOGGED_OFF_ON_BEHALF_OF_MESSAGING_SERVER_OR_PROTOCOL_ERROR,
            MessagingNetworkException.ENDUSER_LOGGED_OFF_DUE_TO_MESSAGING_OPERATION_TIMEOUT));
        else
          finish(new MessagingNetworkException("t #"+trid+" expired",
            MessagingNetworkException.CATEGORY_STILL_CONNECTED,
            MessagingNetworkException.ENDUSER_MESSAGING_OPERATION_TIMED_OUT_NOT_LOGGED_OFF));
      }
      return true;
    }
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.