| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
|
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
|
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
|
|
| 19 |
|
package org.itracker.services.exceptions; |
| 20 |
|
|
| 21 |
|
|
| 22 |
|
|
| 23 |
|
|
| 24 |
|
|
| 25 |
|
|
|
|
|
| 0% |
Uncovered Elements: 18 (18) |
Complexity: 7 |
Complexity Density: 0.64 |
|
| 26 |
|
public class IssueException extends Exception { |
| 27 |
|
|
| 28 |
|
|
| 29 |
|
|
| 30 |
|
|
| 31 |
|
private static final long serialVersionUID = 3433495017849044287L; |
| 32 |
|
public static final String TYPE_UNKNOWN = "itracker.web.error.system"; |
| 33 |
|
public static final String TYPE_CF_INVALID_LIST_OPTION = "itracker.web.error.validate.invalid"; |
| 34 |
|
public static final String TYPE_CF_PARSE_NUM = "itracker.web.error.validate.number"; |
| 35 |
|
public static final String TYPE_CF_PARSE_DATE = "itracker.web.error.validate.date"; |
| 36 |
|
public static final String TYPE_CF_REQ_FIELD = "itracker.web.error.validate.required"; |
| 37 |
|
|
| 38 |
|
private String type; |
| 39 |
|
|
| 40 |
|
|
| 41 |
|
|
| 42 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 43 |
0
|
public IssueException() {... |
| 44 |
0
|
type = TYPE_UNKNOWN; |
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
|
| 48 |
|
|
| 49 |
|
@param |
| 50 |
|
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 51 |
0
|
public IssueException(String message) {... |
| 52 |
0
|
super(message); |
| 53 |
0
|
type = TYPE_UNKNOWN; |
| 54 |
|
} |
| 55 |
|
|
| 56 |
|
|
| 57 |
|
|
| 58 |
|
@param |
| 59 |
|
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 60 |
0
|
public IssueException(String message, Throwable cause) {... |
| 61 |
0
|
super(message, cause); |
| 62 |
0
|
type = TYPE_UNKNOWN; |
| 63 |
|
} |
| 64 |
|
|
| 65 |
|
|
| 66 |
|
|
| 67 |
|
@param |
| 68 |
|
@param |
| 69 |
|
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 70 |
0
|
public IssueException(String message, String type) {... |
| 71 |
0
|
super(message); |
| 72 |
0
|
this.type = type; |
| 73 |
|
} |
| 74 |
|
|
| 75 |
|
|
| 76 |
|
|
| 77 |
|
@param |
| 78 |
|
@param |
| 79 |
|
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
| 80 |
0
|
public IssueException(String message, String type, Throwable cause) {... |
| 81 |
0
|
super(message, cause); |
| 82 |
0
|
this.type = type; |
| 83 |
|
} |
| 84 |
|
|
| 85 |
|
|
| 86 |
|
|
| 87 |
|
|
| 88 |
|
@return |
| 89 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 90 |
0
|
public String getType() {... |
| 91 |
0
|
return type; |
| 92 |
|
} |
| 93 |
|
|
| 94 |
|
|
| 95 |
|
|
| 96 |
|
@param |
| 97 |
|
|
| 98 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 99 |
0
|
public void setType(String value) {... |
| 100 |
0
|
type = value; |
| 101 |
|
} |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
|