Generalize the COPSPepException class to a COPSException to make upstream exception... 33/19533/2
authorSteven Pisarski <s.pisarski@cablelabs.com>
Mon, 4 May 2015 16:19:44 +0000 (10:19 -0600)
committerThomas Kee <xsited@yahoo.com>
Fri, 8 May 2015 19:52:00 +0000 (12:52 -0700)
Change-Id: I1fe57321e8cac7dbdab48e0448e5bc8058073a09
Signed-off-by: Steven Pisarski <s.pisarski@cablelabs.com>
packetcable-driver/src/main/java/org/umu/cops/ospep/COPSPepException.java

index 6f3fde731ef8822dbd2156ef9158377af519b24c..74e51a878d902a05d50aeaeee391f36d1f266155 100644 (file)
@@ -6,45 +6,26 @@
 \r
 package org.umu.cops.ospep;\r
 \r
+import org.umu.cops.stack.COPSException;\r
+\r
 /**\r
  * COPS PEP Exception\r
  *\r
  * @version COPSPepException.java, v 2.00 2004\r
  *\r
  */\r
-public class COPSPepException extends Exception {\r
-\r
-    private int rc;\r
-    final static int GENERAL_ERROR = 0x00000001;\r
-\r
-    /**\r
-     * Creates a <tt>COPSPdpException</tt> with the given message.\r
-     * @param msg    Exception message\r
-     */\r
+public class COPSPepException extends COPSException {\r
 \r
-    public COPSPepException(String msg) {\r
-        super(msg);\r
-        rc=0;\r
+    public COPSPepException(String s) {\r
+        super(s);\r
     }\r
 \r
-    /**\r
-      * Creates a <tt>COPSPdpException</tt> with the given message and return code.\r
-      * @param msg      Exception message\r
-      * @param retCode     Return code\r
-      */\r
     public COPSPepException(String msg, int retCode) {\r
-        super(msg);\r
-        rc = retCode;\r
+        super(msg, retCode);\r
     }\r
 \r
-    /**\r
-     * Returns the return code of the exception\r
-     *\r
-     * @return   Exception's return code\r
-     *\r
-     */\r
-    public int returnCode() {\r
-        return rc;\r
+    public COPSPepException(String msg, Throwable t) {\r
+        super(msg, t);\r
     }\r
 \r
 }\r