forked from maxliaops/Java_Web_Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppException.java
More file actions
36 lines (34 loc) · 814 Bytes
/
Copy pathAppException.java
File metadata and controls
36 lines (34 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.lyq.util;
/**
* Òì³£
* @author Li Yongqiang
*
*/
public class AppException extends RuntimeException {
private static final long serialVersionUID = 1L;
private String message;
private String[] args;
private String defaultMessage;
public AppException(String message){
this.message = message;
}
public AppException(String message, String...args){
this.message = message;
if(args != null && args.length > 0){
}
}
public AppException(String message, String[] args, String defaultMessage) {
this.message = message;
this.args = args;
this.defaultMessage = defaultMessage;
}
public String getMessage() {
return message;
}
public String[] getArgs() {
return args;
}
public String getDefaultMessage() {
return defaultMessage;
}
}