📄 iexceptionhandler.java
字号:
package org.expframework.exceptionhandler;
import org.expframework.data.ExceptionDTO;
/**
* An abstraction for handling <code>BaseAppException</code>.
* <p>
* <b>Overview: </b>
* <p>
* It's used by Controller to log the exception and getting an instance of
* <code>ExceptionDTO</code>.
*
* @author ShriKant
*
* @version 1.0
*/
public interface IExceptionHandler {
/**
* Logs the exception as well as creates an instance of
* <code>ExceptionDTO</code> which contains the attributes that are used
* to show a message to the end user.
*
* @param context
* String object.
* @param userId
* User id as String.
* @param th
* Throwable object.
* @return <code>ExceptionDTO</code> which contains the details for
* displaying a user-friendly message to end user.
*
*/
ExceptionDTO handleException(String context, String userId, Throwable th);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -