rsanchez
2017-04-18 523edc2956a42bda7d33884fcbbb6018addda4b0
securis/src/main/java/net/curisit/securis/services/exception/SeCurisServiceException.java
....@@ -4,46 +4,47 @@
44
55 public class SeCurisServiceException extends CurisException {
66
7
- private int errorCode = 0;
7
+ private int errorCode = 0;
88
9
- public SeCurisServiceException(int errorCode, String msg) {
10
- super(msg);
11
- this.errorCode = errorCode;
12
- }
9
+ public SeCurisServiceException(int errorCode, String msg) {
10
+ super(msg);
11
+ this.errorCode = errorCode;
12
+ }
1313
14
- public SeCurisServiceException(String msg) {
15
- super(msg);
16
- this.errorCode = ErrorCodes.UNEXPECTED_ERROR;
17
- }
14
+ public SeCurisServiceException(String msg) {
15
+ super(msg);
16
+ this.errorCode = ErrorCodes.UNEXPECTED_ERROR;
17
+ }
1818
19
- public int getStatus() {
20
- return errorCode;
21
- }
19
+ public int getStatus() {
20
+ return errorCode;
21
+ }
2222
23
- /**
23
+ /**
2424 *
2525 */
26
- private static final long serialVersionUID = 1L;
26
+ private static final long serialVersionUID = 1L;
2727
28
- public static class ErrorCodes {
29
- public static int UNEXPECTED_ERROR = 1000;
30
- public static int INVALID_CREDENTIALS = 1001;
31
- public static int UNAUTHORIZED_ACCESS = 1002;
32
- public static int NOT_FOUND = 1003;
33
- public static int INVALID_FORMAT = 1004;
34
- public static int WRONG_STATUS = 1005;
28
+ public static class ErrorCodes {
29
+ public static int UNEXPECTED_ERROR = 1000;
30
+ public static int INVALID_CREDENTIALS = 1001;
31
+ public static int UNAUTHORIZED_ACCESS = 1002;
32
+ public static int NOT_FOUND = 1003;
33
+ public static int INVALID_FORMAT = 1004;
34
+ public static int WRONG_STATUS = 1005;
3535
36
- public static int INVALID_LICENSE_REQUEST_DATA = 1100;
37
- public static int LICENSE_NOT_READY_FOR_RENEW = 1101;
38
- public static int LICENSE_DATA_IS_NOT_VALID = 1102;
39
- public static int LICENSE_IS_EXPIRED = 1103;
36
+ public static int INVALID_LICENSE_REQUEST_DATA = 1100;
37
+ public static int LICENSE_NOT_READY_FOR_RENEW = 1101;
38
+ public static int LICENSE_DATA_IS_NOT_VALID = 1102;
39
+ public static int LICENSE_IS_EXPIRED = 1103;
40
+ public static int LICENSE_PACK_IS_NOT_VALID = 1104;
4041
41
- public static int INVALID_REQUEST_DATA = 1201;
42
- public static int INVALID_REQUEST_DATA_FORMAT = 1202;
43
- public static int BLOCKED_REQUEST_DATA = 1203;
44
- public static int DUPLICATED_REQUEST_DATA = 1204;
45
- public static int NO_AVAILABLE_LICENSES = 1205;
42
+ public static int INVALID_REQUEST_DATA = 1201;
43
+ public static int INVALID_REQUEST_DATA_FORMAT = 1202;
44
+ public static int BLOCKED_REQUEST_DATA = 1203;
45
+ public static int DUPLICATED_REQUEST_DATA = 1204;
46
+ public static int NO_AVAILABLE_LICENSES = 1205;
4647
47
- public static int INVALID_DATA = 1301;
48
- }
48
+ public static int INVALID_DATA = 1301;
49
+ }
4950 }