Author: xor
Date: 2008-11-11 19:10:40 +0000 (Tue, 11 Nov 2008)
New Revision: 23488

Added:
   trunk/plugins/Freetalk/exceptions/
   trunk/plugins/Freetalk/exceptions/InvalidParameterException.java
Log:
New class.

Added: trunk/plugins/Freetalk/exceptions/InvalidParameterException.java
===================================================================
--- trunk/plugins/Freetalk/exceptions/InvalidParameterException.java            
                (rev 0)
+++ trunk/plugins/Freetalk/exceptions/InvalidParameterException.java    
2008-11-11 19:10:40 UTC (rev 23488)
@@ -0,0 +1,28 @@
+/**
+ * This code is part of Freetalk, a plugin for Freenet. It is distributed 
+ * under the GNU General Public License, version 2 (or at your option
+ * any later version). See http://www.gnu.org/ for details of the GPL.
+ */
+package plugins.Freetalk.exceptions;
+
+/* 
+ * FIXME: Isn't there any standard java exception for that purpose?
+ * IllegalArgumentException is unfortunately a RuntimeException, same
+ * for the java.security.InvalidParameterException.
+ */
+
+
+/**
+ * Thrown the user supplied an invalid parameter.
+ * 
+ * @author Julien Cornuwel ([EMAIL PROTECTED])
+ *
+ */
+public class InvalidParameterException extends Exception {
+       
+       private static final long serialVersionUID = -1;
+
+       public InvalidParameterException(String message) {
+               super(message);
+       }
+}

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to