Generalizing COPSPdpException to a COPSException. 91/19391/2
authorSteven Pisarski <s.pisarski@cablelabs.com>
Thu, 30 Apr 2015 15:42:17 +0000 (09:42 -0600)
committerThomas Kee <xsited@yahoo.com>
Fri, 8 May 2015 19:51:58 +0000 (12:51 -0700)
Change-Id: I26043dd475f12a5fe02a7b04b97e04ab747e1063
Signed-off-by: Steven Pisarski <s.pisarski@cablelabs.com>
packetcable-driver/src/main/java/org/umu/cops/prpdp/COPSPdpException.java

index f54744c9d36b5d0b6cb5c1c6c4aae5d8e81c303d..257032ce45f3c19acdb2d5b8e4d7b2a02956a911 100644 (file)
@@ -6,6 +6,8 @@
 
 package org.umu.cops.prpdp;
 
+import org.umu.cops.stack.COPSException;
+
 /**
  * Exception class for PDP errors
  *
@@ -13,10 +15,7 @@ package org.umu.cops.prpdp;
  *
  */
 
-public class COPSPdpException extends Exception {
-
-    private int rc;
-    final static int GENERAL_ERROR = 0x00000001;
+public class COPSPdpException extends COPSException {
 
     /**
     * Creates a <tt>COPSPdpException</tt> with the given message.
@@ -24,7 +23,6 @@ public class COPSPdpException extends Exception {
     */
     public COPSPdpException(String msg) {
         super(msg);
-        rc=0;
     }
 
     /**
@@ -33,8 +31,7 @@ public class COPSPdpException extends Exception {
      * @param retCode   Return code
      */
     public COPSPdpException(String msg, int retCode) {
-        super(msg);
-        rc = retCode;
+        super(msg, retCode);
     }
 
     /**
@@ -46,12 +43,4 @@ public class COPSPdpException extends Exception {
         super(msg, t);
     }
 
-    /**
-     * Gets the return code of the exception
-     * @return    Exception's return code
-     */
-    public int returnCode() {
-        return rc;
-    }
-
 }