exceptiondisplaydto.java
来自「基于struts的一个异常处理框架,采用aop原理来统一处理异常。」· Java 代码 · 共 67 行
JAVA
67 行
package org.expframework.data;
/**
* Contains the details of ActionForward name and context detail (for context
* sensitive exceptions).
*
* @author ShriKant
* @version 1.0
*/
public class ExceptionDisplayDTO {
String context;
String actionForwardName;
/**
* Creates a ExceptionDisplayDTO with name and context params
*
* @param name
* ActionForward name to forward for exception cases
* @param context
* used for context-sensitive exceptions
*
*/
public ExceptionDisplayDTO(String name, String context) {
super();
actionForwardName = name;
this.context = context;
}
/**
* Returns the actionForwardName
*
* @return String
*/
public String getActionForwardName() {
return actionForwardName;
}
/**
* Sets the actionForwardName
*
* @param actionForwardName
* The actionForwardName to set.
*/
public void setActionForwardName(String actionForwardName) {
this.actionForwardName = actionForwardName;
}
/**
* Returns the context
*
* @return String
*/
public String getContext() {
return context;
}
/**
* Sets the context
*
* @param context
* The context to set.
*/
public void setContext(String context) {
this.context = context;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?