Fixed building of models, moved code into directory structure.
[packetcable.git] / protocol_plugins.packetcable / src / main / java / org / umu / cops / stack / COPSException.java
diff --git a/protocol_plugins.packetcable/src/main/java/org/umu/cops/stack/COPSException.java b/protocol_plugins.packetcable/src/main/java/org/umu/cops/stack/COPSException.java
new file mode 100644 (file)
index 0000000..127ce61
--- /dev/null
@@ -0,0 +1,40 @@
+/*\r
+ * Copyright (c) 2003 University of Murcia.  All rights reserved.\r
+ * --------------------------------------------------------------\r
+ * For more information, please see <http://www.umu.euro6ix.org/>.\r
+ */\r
+\r
+package org.umu.cops.stack;\r
+\r
+/**\r
+ * COPS Exception\r
+ *\r
+ * @version COPSException.java, v 1.00 2003\r
+ *\r
+ */\r
+public class COPSException extends Exception {\r
+\r
+    private int rc;\r
+    final static int GENERAL_ERROR = 0x00000001;\r
+\r
+    public COPSException(String s) {\r
+        super(s);\r
+        rc=0;\r
+    }\r
+\r
+    public COPSException(String msg, int retCode) {\r
+        super(msg);\r
+        rc = retCode;\r
+    }\r
+\r
+    /**\r
+     * Method returnCode\r
+     *\r
+     * @return   an int\r
+     *\r
+     */\r
+    public int returnCode() {\r
+        return rc;\r
+    }\r
+\r
+}\r