From 523edc2956a42bda7d33884fcbbb6018addda4b0 Mon Sep 17 00:00:00 2001
From: rsanchez <rsanchez@curisit.net>
Date: Tue, 18 Apr 2017 17:07:34 +0000
Subject: [PATCH] #3582 feature - Changed API to take in account pack data, (valid end date, status, ...) and some minor fixes
---
securis/src/main/java/net/curisit/securis/services/exception/SeCurisServiceException.java | 65 ++++++++++++++++----------------
1 files changed, 33 insertions(+), 32 deletions(-)
diff --git a/securis/src/main/java/net/curisit/securis/services/exception/SeCurisServiceException.java b/securis/src/main/java/net/curisit/securis/services/exception/SeCurisServiceException.java
index 40846c2..29b814b 100644
--- a/securis/src/main/java/net/curisit/securis/services/exception/SeCurisServiceException.java
+++ b/securis/src/main/java/net/curisit/securis/services/exception/SeCurisServiceException.java
@@ -4,46 +4,47 @@
public class SeCurisServiceException extends CurisException {
- private int errorCode = 0;
+ private int errorCode = 0;
- public SeCurisServiceException(int errorCode, String msg) {
- super(msg);
- this.errorCode = errorCode;
- }
+ public SeCurisServiceException(int errorCode, String msg) {
+ super(msg);
+ this.errorCode = errorCode;
+ }
- public SeCurisServiceException(String msg) {
- super(msg);
- this.errorCode = ErrorCodes.UNEXPECTED_ERROR;
- }
+ public SeCurisServiceException(String msg) {
+ super(msg);
+ this.errorCode = ErrorCodes.UNEXPECTED_ERROR;
+ }
- public int getStatus() {
- return errorCode;
- }
+ public int getStatus() {
+ return errorCode;
+ }
- /**
+ /**
*
*/
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = 1L;
- public static class ErrorCodes {
- public static int UNEXPECTED_ERROR = 1000;
- public static int INVALID_CREDENTIALS = 1001;
- public static int UNAUTHORIZED_ACCESS = 1002;
- public static int NOT_FOUND = 1003;
- public static int INVALID_FORMAT = 1004;
- public static int WRONG_STATUS = 1005;
+ public static class ErrorCodes {
+ public static int UNEXPECTED_ERROR = 1000;
+ public static int INVALID_CREDENTIALS = 1001;
+ public static int UNAUTHORIZED_ACCESS = 1002;
+ public static int NOT_FOUND = 1003;
+ public static int INVALID_FORMAT = 1004;
+ public static int WRONG_STATUS = 1005;
- public static int INVALID_LICENSE_REQUEST_DATA = 1100;
- public static int LICENSE_NOT_READY_FOR_RENEW = 1101;
- public static int LICENSE_DATA_IS_NOT_VALID = 1102;
- public static int LICENSE_IS_EXPIRED = 1103;
+ public static int INVALID_LICENSE_REQUEST_DATA = 1100;
+ public static int LICENSE_NOT_READY_FOR_RENEW = 1101;
+ public static int LICENSE_DATA_IS_NOT_VALID = 1102;
+ public static int LICENSE_IS_EXPIRED = 1103;
+ public static int LICENSE_PACK_IS_NOT_VALID = 1104;
- public static int INVALID_REQUEST_DATA = 1201;
- public static int INVALID_REQUEST_DATA_FORMAT = 1202;
- public static int BLOCKED_REQUEST_DATA = 1203;
- public static int DUPLICATED_REQUEST_DATA = 1204;
- public static int NO_AVAILABLE_LICENSES = 1205;
+ public static int INVALID_REQUEST_DATA = 1201;
+ public static int INVALID_REQUEST_DATA_FORMAT = 1202;
+ public static int BLOCKED_REQUEST_DATA = 1203;
+ public static int DUPLICATED_REQUEST_DATA = 1204;
+ public static int NO_AVAILABLE_LICENSES = 1205;
- public static int INVALID_DATA = 1301;
- }
+ public static int INVALID_DATA = 1301;
+ }
}
--
Gitblit v1.3.2