01: package org.jfox.mvc;
02:
03: import org.jfox.framework.BaseRuntimeException;
04:
05: /**
06: * @author <a href="mailto:yang_y@sysnet.com.cn">Young Yang</a>
07: */
08: public class PermissionNotAllowedException extends BaseRuntimeException {
09:
10: private String actionName;
11:
12: private String username;
13:
14: public PermissionNotAllowedException(String actionName,
15: String username) {
16: super ("ActionName: " + actionName + ", Username: " + username);
17: this .actionName = actionName;
18: this .username = username;
19: }
20:
21: public String getActionName() {
22: return actionName;
23: }
24:
25: public String getUsername() {
26: return username;
27: }
28:
29: public static void main(String[] args) {
30:
31: }
32: }
|