\r
package org.umu.cops.ospdp;\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 COPSPdpException extends Exception {\r
-\r
- private int rc;\r
- final static int GENERAL_ERROR = 0x00000001;\r
+public class COPSPdpException extends COPSException {\r
\r
/**\r
* Creates a <tt>COPSPdpException</tt> with the given message.\r
- * @param msg Exception message\r
+ * @param msg Exception message\r
*/\r
public COPSPdpException(String msg) {\r
super(msg);\r
- rc=0;\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
+ * @param msg Exception message\r
+ * @param retCode Return code\r
*/\r
public COPSPdpException(String msg, int retCode) {\r
- super(msg);\r
- rc = retCode;\r
+ super(msg, retCode);\r
}\r
\r
/**\r
- * Gets the return code of the exception\r
- * @return Exception's return code\r
+ * Creates a <tt>COPSPdpException</tt> with the given message and throwable.\r
+ * @param msg Exception message\r
+ * @param t the Throwable\r
*/\r
- public int returnCode() {\r
- return rc;\r
+ public COPSPdpException(String msg, Throwable t) {\r
+ super(msg, t);\r
}\r
\r
}\r