tdlight-java/src/main/java/it/tdlight/common/ExceptionHandler.java
Andrea Cavalli 4d51b63737 Update API
2020-10-12 18:48:49 +02:00

16 lines
423 B
Java

package it.tdlight.common;
/**
* Interface for handler of exceptions thrown while invoking ResultHandler.
* By default, all such exceptions are ignored.
* All exceptions thrown from ExceptionHandler are ignored.
*/
public interface ExceptionHandler {
/**
* Callback called on exceptions thrown while invoking ResultHandler.
*
* @param e Exception thrown by ResultHandler.
*/
void onException(Throwable e);
}