-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApplicationException
More file actions
43 lines (36 loc) · 931 Bytes
/
Copy pathApplicationException
File metadata and controls
43 lines (36 loc) · 931 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
37
38
39
40
41
42
43
package com.rs.exception;
/**
*
* @author Ravi Singh
*/
public class ApplicativeException extends Exception {
private static final long serialVersionUID = 1L;
private String m_csError = null;
private String m_csMessage = null;
private Throwable m_throwable = null;
protected ApplicativeException(ApplicativeException e) {
super(e);
m_csError = e.m_csError;
m_csMessage = e.m_csMessage;
m_throwable = e.m_throwable;
}
protected ApplicativeException(String csError, String csMessage) {
m_csError = csError;
m_csMessage = csMessage;
m_throwable = new Throwable();
}
protected ApplicativeException(String csError, String csMessage, Throwable throwable) {
m_csError = csError;
m_csMessage = csMessage;
m_throwable = throwable;
}
public String getCode() {
return m_csError;
}
public String getMessage() {
return m_csMessage;
}
public Throwable getThrowable() {
return m_throwable;
}
}