--- /dev/null
+package org.commscope.tr069adapter.mapper.util;\r
+\r
+import java.util.HashMap;\r
+import java.util.Map;\r
+\r
+public class FirwareUpgradeErrorCode {\r
+ private static Map<Integer, String> ErrorCodes = new HashMap<Integer, String>();;\r
+\r
+ static {\r
+ ErrorCodes.put(9019, "AUTHENTICATION_ERROR");\r
+ ErrorCodes.put(9001, "AUTHENTICATION_ERROR");\r
+ ErrorCodes.put(9016, "AUTHENTICATION_ERROR");\r
+ ErrorCodes.put(9012, "AUTHENTICATION_ERROR");\r
+ ErrorCodes.put(9015, "PROTOCOL_ERROR");\r
+ ErrorCodes.put(9002, "APPLICATION_ERROR");\r
+ ErrorCodes.put(9003, "APPLICATION_ERROR");\r
+ ErrorCodes.put(9020, "TIMEOUT");\r
+ ErrorCodes.put(0, "COMPLETED");\r
+ }\r
+\r
+ public static String getErrorCodeMapping(int errorCode) {\r
+ return ErrorCodes.get(errorCode) != null ? ErrorCodes.get(errorCode) : "APPLICATION_ERROR";\r
+ }\r
+\r
+}\r