| .. | .. |
|---|
| 4 | 4 | |
|---|
| 5 | 5 | public class SeCurisServiceException extends CurisException { |
|---|
| 6 | 6 | |
|---|
| 7 | | - private int errorCode = 0; |
|---|
| 7 | + private int errorCode = 0; |
|---|
| 8 | 8 | |
|---|
| 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 | + } |
|---|
| 13 | 13 | |
|---|
| 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 | + } |
|---|
| 18 | 18 | |
|---|
| 19 | | - public int getStatus() { |
|---|
| 20 | | - return errorCode; |
|---|
| 21 | | - } |
|---|
| 19 | + public int getStatus() { |
|---|
| 20 | + return errorCode; |
|---|
| 21 | + } |
|---|
| 22 | 22 | |
|---|
| 23 | | - /** |
|---|
| 23 | + /** |
|---|
| 24 | 24 | * |
|---|
| 25 | 25 | */ |
|---|
| 26 | | - private static final long serialVersionUID = 1L; |
|---|
| 26 | + private static final long serialVersionUID = 1L; |
|---|
| 27 | 27 | |
|---|
| 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; |
|---|
| 35 | 35 | |
|---|
| 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; |
|---|
| 40 | 41 | |
|---|
| 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; |
|---|
| 46 | 47 | |
|---|
| 47 | | - public static int INVALID_DATA = 1301; |
|---|
| 48 | | - } |
|---|
| 48 | + public static int INVALID_DATA = 1301; |
|---|
| 49 | + } |
|---|
| 49 | 50 | } |
|---|