Package org.butor.utils

Examples of org.butor.utils.ApplicationException


  protected String buildKey(String methodName_, int nbArgs_) {
    return String.format("%s.%d", methodName_, nbArgs_);
  }
  protected void handleException(final ResponseHandler<?> handler, String serviceName, Throwable e) {
    if (e instanceof ApplicationException) {
      ApplicationException appEx = (ApplicationException)e;
      _logger.warn(String.format("Failed to invoke service e=%s, cmp=%s",
          serviceName, targetCmp.getClass().getName()), appEx);
      for (Message message : appEx.getMessages()) {
        handler.addMessage(message);
      }
     
    } else {
      _logger.error(String.format("Failed to invoke service=%s, cmp=%s",
View Full Code Here


    }
  }
  */
  private void handleException(final ResponseHandler<?> handler, String serviceName, Throwable e) {
    if (e instanceof ApplicationException) {
      ApplicationException appEx = (ApplicationException)e;
      _logger.warn(String.format("Failed to invoke service e=%s, cmp=%s",
          serviceName, targetCmp.getClass().getName()), appEx);
      for (Message message : appEx.getMessages()) {
        handler.addMessage(message);
      }
     
    } else {
      _logger.error(String.format("Failed to invoke service=%s, cmp=%s",
View Full Code Here

    }
  }

  private void handleException(final Context ctx_, String ns, String serviceName, Throwable e) {
    if (e instanceof ApplicationException) {
      ApplicationException appEx = (ApplicationException)e;
      _logger.warn(String.format("Failed to invoke service e=%s, ns=%s",
          serviceName, ns), appEx);
      for (Message message : appEx.getMessages()) {
        ctx_.getResponseHandler().addMessage(message);
      }
     
    } else {
      _logger.error(String.format("Failed to invoke service=%s, ns=%s",
View Full Code Here

  protected String buildKey(String methodName_, int nbArgs_) {
    return String.format("%s.%d", methodName_, nbArgs_);
  }
  protected void handleException(final ResponseHandler<?> handler, String serviceName, Throwable e) {
    if (e instanceof ApplicationException) {
      ApplicationException appEx = (ApplicationException)e;
      _logger.warn(String.format("Failed to invoke service e=%s, cmp=%s",
          serviceName, targetCmp.getClass().getName()), appEx);
      for (Message message : appEx.getMessages()) {
        handler.addMessage(message);
      }
     
    } else if (Throwables.getRootCause(e) instanceof ConnectException) {
      _logger.error(String.format("Failed to connect service=%s, cmp=%s",
View Full Code Here

    }
  }

  private void handleException(final Context ctx_, String ns, String serviceName, Throwable e) {
    if (e instanceof ApplicationException) {
      ApplicationException appEx = (ApplicationException)e;
      _logger.warn(String.format("Failed to invoke service e=%s, ns=%s",
          serviceName, ns), appEx);
      for (Message message : appEx.getMessages()) {
        ctx_.getResponseHandler().addMessage(message);
      }
     
    } else {
      _logger.error(String.format("Failed to invoke service=%s, ns=%s",
View Full Code Here

    }
  }

  private void handleException(final Context ctx_, String ns, String serviceName, Throwable e) {
    if (e instanceof ApplicationException) {
      ApplicationException appEx = (ApplicationException)e;
      _logger.warn(String.format("Failed to invoke service e=%s, ns=%s",
          serviceName, ns), appEx);
      for (Message message : appEx.getMessages()) {
        ctx_.getResponseHandler().addMessage(message);
      }
     
    } else {
      _logger.error(String.format("Failed to invoke service=%s, ns=%s",
View Full Code Here

TOP

Related Classes of org.butor.utils.ApplicationException

Copyright © 2018 www.massapicom. 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.