001package org.intellimate.izou.sdk.util; 002 003import org.intellimate.izou.threadpool.ExceptionCallback; 004 005/** 006 * This interface logs when its crashing inside the Izou-ThreadPool 007 * @author Leander Kurscheidt 008 * @version 1.0 009 */ 010public interface LoggedExceptionCallback extends ExceptionCallback, ContextProvider { 011 @Override 012 default void exceptionThrown(Exception e) { 013 getContext().getLogger().fatal("Module: " + this.getClass().getName() + " crashed", e); 014 } 015}