|
1 |
| package net.sf.crispy.impl.rest; |
|
2 |
| |
|
3 |
| |
|
4 |
| |
|
5 |
| |
|
6 |
| |
|
7 |
| public class ResponseFail { |
|
8 |
| |
|
9 |
| private String message = null; |
|
10 |
| private String exception = null; |
|
11 |
| private String service = null; |
|
12 |
| private String method = null; |
|
13 |
| |
|
14 |
2
| public String getMessage() { return message; }
|
|
15 |
6
| public void setMessage(String pvMessage) { message = pvMessage; }
|
|
16 |
| |
|
17 |
2
| public String getException() { return exception; }
|
|
18 |
7
| public void setException(String pvException) { exception = pvException; }
|
|
19 |
| |
|
20 |
4
| public String getMethod() { return (method == null ? "- NoMethod -" : method); }
|
|
21 |
8
| public void setMethod(String pvMethod) { method = pvMethod; }
|
|
22 |
| |
|
23 |
4
| public String getService() { return (service == null ? "- NoServiceClass -" : service); }
|
|
24 |
8
| public void setService(String pvService) { service = pvService; }
|
|
25 |
| |
|
26 |
1
| public String toString() {
|
|
27 |
1
| return getClass().getName() + ": " + getMessage() + " (" + getService() + "." + getMethod() + " - " + getException() + ")";
|
|
28 |
| } |
|
29 |
| } |