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

package org.umu.cops.ospep;

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

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

    /**
     * Creates a <tt>COPSPdpException</tt> with the given message.
     * @param msg    Exception message
     */

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

    /**
      * Creates a <tt>COPSPdpException</tt> with the given message and return code.
      * @param msg      Exception message
      * @param retCode     Return code
      */
    public COPSPepException(String msg, int retCode) {
        super(msg);
        rc = retCode;
    }

    /**
     * Returns the return code of the exception
     *
     * @return   Exception's return code
     *
     */
    public int returnCode() {
        return rc;
    }

}<commit_msg>Generalize the COPSPepException class to a COPSException to make upstream exception handling easier.<commit_after>/*
 * Copyright (c) 2004 University of Murcia.  All rights reserved.
 * --------------------------------------------------------------
 * For more information, please see <http://www.umu.euro6ix.org/>.
 */

package org.umu.cops.ospep;

import org.umu.cops.stack.COPSException;

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

    public COPSPepException(String s) {
        super(s);
    }

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

    public COPSPepException(String msg, Throwable t) {
        super(msg, t);
    }

}
{'fraction_non_alphanumeric': 0.16308337703198741, 'fraction_numerical': 0.01782905086523335, 'mean_word_length': 2.0094637223974763, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 1, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7393668', 'n_tokens_mistral': 595, 'n_tokens_neox': 545, 'n_words': 160}