Package com.dianxin.tori.base.lifecycle
Class ExceptionManager
java.lang.Object
com.dianxin.tori.base.lifecycle.ExceptionManager
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ExceptionManager
public ExceptionManager()
-
-
Method Details
-
register
public <E extends Throwable,C> void register(Class<E> exceptionClass, BotExceptionHandler<E, C> handler) Register a handler for a specific Exception type. -
dispatch
Coordinate the error to its correct handler.
-