X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=protocol_plugins.packetcable%2Fsrc%2Fmain%2Fjava%2Forg%2Fumu%2Fcops%2Fprpdp%2FCOPSPdpException.java;fp=protocol_plugins.packetcable%2Fsrc%2Fmain%2Fjava%2Forg%2Fumu%2Fcops%2Fprpdp%2FCOPSPdpException.java;h=fc4c74d45c1a60a17faae24da95b034d4c6a7302;hb=af8b7f39b7ef14468cc15bf748b17aaace8f1bab;hp=0000000000000000000000000000000000000000;hpb=d42ca78ca1b2873a472f9658e10be060515e8062;p=packetcable.git diff --git a/protocol_plugins.packetcable/src/main/java/org/umu/cops/prpdp/COPSPdpException.java b/protocol_plugins.packetcable/src/main/java/org/umu/cops/prpdp/COPSPdpException.java new file mode 100644 index 0000000..fc4c74d --- /dev/null +++ b/protocol_plugins.packetcable/src/main/java/org/umu/cops/prpdp/COPSPdpException.java @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2004 University of Murcia. All rights reserved. + * -------------------------------------------------------------- + * For more information, please see . + */ + +package org.umu.cops.prpdp; + +/** + * Exception class for PDP errors + * + * @version COPSPdpException.java, v 2.00 2004 + * + */ + +public class COPSPdpException extends Exception { + + private int rc; + final static int GENERAL_ERROR = 0x00000001; + + /** + * Creates a COPSPdpException with the given message. + * @param msg Exception message + */ + public COPSPdpException(String msg) { + super(msg); + rc=0; + } + + /** + * Creates a COPSPdpException with the given message and return code. + * @param msg Exception message + * @param retCode Return code + */ + public COPSPdpException(String msg, int retCode) { + super(msg); + rc = retCode; + } + + /** + * Gets the return code of the exception + * @return Exception's return code + */ + public int returnCode() { + return rc; + } + +}