[ONOS-3880, 3881] Yang Listener for Module and Sub-Module
Change-Id: Iee75c3e04af9b66ebc38acb3396aa4c54af5a268
diff --git a/src/main/java/org/onosproject/yangutils/parser/exceptions/ParserException.java b/src/main/java/org/onosproject/yangutils/parser/exceptions/ParserException.java
index 737048c..306828c 100644
--- a/src/main/java/org/onosproject/yangutils/parser/exceptions/ParserException.java
+++ b/src/main/java/org/onosproject/yangutils/parser/exceptions/ParserException.java
@@ -19,13 +19,12 @@
/**
* Base class for exceptions in parser operations.
*/
-public class ParserException extends Exception {
+public class ParserException extends RuntimeException {
private static final long serialVersionUID = 20160211L;
private int lineNumber;
private int charPositionInLine;
private String fileName;
- private String msg;
/**
* Create a new parser exception.
@@ -90,15 +89,6 @@
}
/**
- * Returns msg detail of exception in string.
- *
- * @return msg detail of exception in string
- */
- public String getMsg() {
- return this.msg;
- }
-
- /**
* Sets line number of YANG file.
*
* @param line line number of YANG file
@@ -117,15 +107,6 @@
}
/**
- * Sets the detail of exception in string.
- *
- * @param msg the detail of exception in string
- */
- public void setMsg(String msg) {
- this.msg = msg;
- }
-
- /**
* Sets file name in parser exception.
*
* @param fileName YANG file name