1 18 19 package cowsultants.itracker.ejb.client.exceptions; 20 21 22 26 public class IssueException extends Exception { 27 public static String TYPE_UNKNOWN = "itracker.web.error.system"; 28 public static String TYPE_CF_PARSE_NUM = "itracker.web.error.validate.number"; 29 public static String TYPE_CF_PARSE_DATE = "itracker.web.error.validate.date"; 30 public static String TYPE_CF_REQ_FIELD = "itracker.web.error.validate.required"; 31 32 private String type; 33 34 37 public IssueException() { 38 type = TYPE_UNKNOWN; 39 } 40 41 45 public IssueException(String message) { 46 super(message); 47 type = TYPE_UNKNOWN; 48 } 49 50 55 public IssueException(String message, String type) { 56 super(message); 57 this.type = type; 58 } 59 60 65 public String getType() { 66 return type; 67 } 68 69 74 public void setType(String value) { 75 type = value; 76 } 77 } 78 79 | Popular Tags |