\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