All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.mule.tck.functional.QuietExceptionStrategy Maven / Gradle / Ivy

/*
 * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 * The software in this package is published under the terms of the CPAL v1.0
 * license, a copy of which has been included with this distribution in the
 * LICENSE.txt file.
 */
package org.mule.tck.functional;

import org.mule.api.MuleEvent;
import org.mule.exception.AbstractMessagingExceptionStrategy;

/**
 * Restrict exceptions to debug log messages
 */
public class QuietExceptionStrategy extends AbstractMessagingExceptionStrategy
{
    public QuietExceptionStrategy()
    {
        super(null);
    }

    @Override
    protected void doHandleException(Exception e, MuleEvent event)
    {
        logger.debug("Ignoring", e);
    }

    @Override
    protected void doLogException(Throwable t)
    {
        logger.debug("Ignoring", t);
    }

    public boolean isRedeliver()
    {
        return false;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy