/*
 * Copyright (c) 2004 University of Murcia.  All rights reserved.
 * --------------------------------------------------------------
 * For more information, please see <http://www.umu.euro6ix.org/>.
 */

package org.umu.cops.prpep;

/**
 * COPS PEP Exception
 *
 * @version COPSPepException.java, v 2.00 2004
 *
 */
public class COPSPepException extends Exception {

    private int rc;
    final static int GENERAL_ERROR = 0x00000001;

    public COPSPepException(String s) {
        super(s);
        rc=0;
    }

    public COPSPepException(String msg, int retCode) {
        super(msg);
        rc = retCode;
    }

    /**
     * Return error code
     *
     * @return    error code
     *
     */
    public int returnCode() {
        return rc;
    }

}

@@ -237,16 +237,60 @@
 pep;%0D%0A%0D%0A
+import org.umu.cops.stack.COPSException;%0D%0A%0D%0A
 /**%0D%0A * 
@@ -408,16 +408,20 @@
 extends 
+COPS
 Exceptio
@@ -431,81 +431,8 @@
 %0D%0A%0D%0A
-    private int rc;%0D%0A    final static int GENERAL_ERROR = 0x00000001;%0D%0A%0D%0A
     
@@ -491,23 +491,8 @@
 );%0D%0A
-        rc=0;%0D%0A
     
@@ -573,32 +573,17 @@
 (msg
-);%0D%0A        rc =
+,
  retCode
 ;%0D%0A 
@@ -578,16 +578,17 @@
  retCode
+)
 ;%0D%0A    %7D
@@ -599,142 +599,81 @@
     
-/**%0D%0A     * Return error code%0D%0A     *%0D%0A     * @return    error code%0D%0A     *%0D%0A     */%0D%0A    public int returnCode() %7B%0D%0A        return rc
+public COPSPepException(String msg, Throwable t) %7B%0D%0A        super(msg, t)
 ;%0D%0A 

Generalize the COPSPepException class to a COPSException to make upstream exception handling easier.