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

org.valkyriercp.application.exceptionhandling.ExceptionPurger Maven / Gradle / Ivy

There is a newer version: 1.3
Show newest version
package org.valkyriercp.application.exceptionhandling;

/**
 * Purges a throwable, ussually by looking into it's chain.
 * Usefull for unwrapping WrapEverythingException etc.
 *
 * @see DefaultExceptionPurger
 */
public interface ExceptionPurger {

    /**
     * Purges the throwable to unwrap it to find the most suitable throwable to evaluate or handle.
     *
     * @param e the root exception or error
     * @return e or a chained Throwable which is part of e's chain
     */
    Throwable purge(Throwable e);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy