Package org.springframework.util

Examples of org.springframework.util.ErrorHandler.handleError()


    if (errorHandler != null) {
      try {
        listener.onApplicationEvent(event);
      }
      catch (Throwable err) {
        errorHandler.handleError(err);
      }
    }
    else {
      listener.onApplicationEvent(event);
    }
View Full Code Here


   * @see #setErrorHandler
   */
  protected void invokeErrorHandler(Throwable ex) {
    ErrorHandler errorHandler = getErrorHandler();
    if (errorHandler != null) {
      errorHandler.handleError(ex);
    }
    else if (logger.isWarnEnabled()) {
      logger.warn("Execution of JMS message listener failed, and no ErrorHandler has been set.", ex);
    }
  }
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.