1 package net.sf.crispy.impl.rest;
2
3 /**
4 * @author Linke
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 public String getMessage() { return message; }
15 public void setMessage(String pvMessage) { message = pvMessage; }
16
17 public String getException() { return exception; }
18 public void setException(String pvException) { exception = pvException; }
19
20 public String getMethod() { return (method == null ? "- NoMethod -" : method); }
21 public void setMethod(String pvMethod) { method = pvMethod; }
22
23 public String getService() { return (service == null ? "- NoServiceClass -" : service); }
24 public void setService(String pvService) { service = pvService; }
25
26 public String toString() {
27 return getClass().getName() + ": " + getMessage() + " (" + getService() + "." + getMethod() + " - " + getException() + ")";
28 }
29 }