Development of NETCONF RPCs for tr-069 adapter to
[oam/tr069-adapter.git] / ves-agent / src / main / java / org / commscope / tr069adapter / vesagent / exception / VesAgentException.java
index 77afc65..f5cb14c 100644 (file)
  * ===============LICENSE_END=======================================================================
  */
 
-package org.commscope.tr069adapter.vesagent.exception;\r
-\r
-/**\r
- * \r
- * @version 1.0\r
- * @since May 21, 2020\r
- * @author Prashant\r
- */\r
-public class VesAgentException extends Exception {\r
-  private static final long serialVersionUID = -3742697051389101875L;\r
-\r
-  private static final String ERRORMSG_PREFIX = "ves-agent";\r
-\r
-  private String[] arguments;\r
-\r
-  private String errorCode;\r
-  private String message;\r
-\r
-  // index of the error occurred in the given list or in the given file\r
-  protected int errorIndex = -1;\r
-\r
-\r
-  /**\r
-   * Constructs a <code>VesOperationException</code> with no detail message.\r
-   * \r
-   */\r
-  public VesAgentException() {\r
-    super();\r
-  }\r
-\r
-  /**\r
-   * Constructs a <code>VesOperationException</code> with the specified detail message.\r
-   * \r
-   * @param s as the details message\r
-   */\r
-  public VesAgentException(String s) {\r
-    super(s);\r
-  }\r
-\r
-  public VesAgentException(String... args) {\r
-    super();\r
-    arguments = args;\r
-    setErrorMessage(getErrorMessage());\r
-  }\r
-\r
-  public VesAgentException(String errorCode, String errorMsg) {\r
-    super();\r
-    this.errorCode = errorCode;\r
-    setErrorMessage(getErrorMessage());\r
-  }\r
-\r
-  public int getErrorIndex() {\r
-    return errorIndex;\r
-  }\r
-\r
-  public void setErrorIndex(int errorIndex) {\r
-    this.errorIndex = errorIndex;\r
-  }\r
-\r
-\r
-  public String getMessage() {\r
-    return message;\r
-  }\r
-\r
-  private String getErrorMessage() {\r
-    String key = ERRORMSG_PREFIX + ".";\r
-    return key;\r
-  }\r
-\r
-  private void setErrorMessage(String message) {\r
-    this.message = message;\r
-  }\r
-\r
-  public String getErrorCode() {\r
-    return errorCode;\r
-  }\r
-\r
-  public void setErrorCode(String errorCode) {\r
-    this.errorCode = errorCode;\r
-  }\r
-}\r
+package org.commscope.tr069adapter.vesagent.exception;
+
+/**
+ * 
+ * @version 1.0
+ * @since May 21, 2020
+ * @author Prashant
+ */
+public class VesAgentException extends Exception {
+  private static final long serialVersionUID = -3742697051389101875L;
+
+  private static final String ERRORMSG_PREFIX = "ves-agent";
+
+
+  private String errorCode;
+  private String message;
+
+  // index of the error occurred in the given list or in the given file
+  protected int errorIndex = -1;
+
+
+  /**
+   * Constructs a <code>VesOperationException</code> with no detail message.
+   * 
+   */
+  public VesAgentException() {
+    super();
+  }
+
+  /**
+   * Constructs a <code>VesOperationException</code> with the specified detail message.
+   * 
+   * @param s as the details message
+   */
+  public VesAgentException(String s) {
+    super(s);
+  }
+
+  public VesAgentException(String... args) {
+    super();
+    setErrorMessage(getErrorMessage());
+  }
+
+  public VesAgentException(String errorCode, String errorMsg) {
+    super();
+    this.errorCode = errorCode;
+    setErrorMessage(getErrorMessage());
+  }
+
+  public int getErrorIndex() {
+    return errorIndex;
+  }
+
+  public void setErrorIndex(int errorIndex) {
+    this.errorIndex = errorIndex;
+  }
+
+  @Override
+  public String getMessage() {
+    return message;
+  }
+
+  private String getErrorMessage() {
+    return ERRORMSG_PREFIX + ".";
+  }
+
+  private void setErrorMessage(String message) {
+    this.message = message;
+  }
+
+  public String getErrorCode() {
+    return errorCode;
+  }
+
+  public void setErrorCode(String errorCode) {
+    this.errorCode = errorCode;
+  }
+}