package org.umu.cops.prpdp;
+import org.umu.cops.stack.COPSException;
+
/**
* Exception class for PDP errors
*
*
*/
-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.
*/
public COPSPdpException(String msg) {
super(msg);
- rc=0;
}
/**
* @param retCode Return code
*/
public COPSPdpException(String msg, int retCode) {
- super(msg);
- rc = retCode;
+ super(msg, retCode);
}
/**
super(msg, t);
}
- /**
- * Gets the return code of the exception
- * @return Exception's return code
- */
- public int returnCode() {
- return rc;
- }
-
}