?? 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);
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -