[Csvtosql-cvs] csvtosql_jdk50/src/net/sf/csv2sql/renders/exceptions InvalidParameterValueException.j
Brought to you by:
davideconsonni
|
From: consonni d. <dav...@us...> - 2005-04-25 10:53:31
|
Update of /cvsroot/csvtosql/csvtosql_jdk50/src/net/sf/csv2sql/renders/exceptions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15138/net/sf/csv2sql/renders/exceptions Added Files: InvalidParameterValueException.java MissingRequiredParameterException.java RendererException.java Log Message: no message --- NEW FILE: RendererException.java --- /* Copyright (C) 2004 Davide Consonni <dco...@en...> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package net.sf.csv2sql.renders.exceptions; /** * is throwed when any exception occur during rendering. * @author <a href="mailto:dco...@en...">Davide Consonni</a> */ public class RendererException extends java.lang.Exception { public RendererException(String message, Throwable cause) { super(message, cause); } public RendererException(Throwable cause) { super(cause); } } --- NEW FILE: InvalidParameterValueException.java --- /* Copyright (C) 2004 Davide Consonni <dco...@en...> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package net.sf.csv2sql.renders.exceptions; /** * throwed when a required renders' parameter has an invalid value. * @author <a href="mailto:dco...@en...">Davide Consonni</a> */ public class InvalidParameterValueException extends RendererException { private String parameterName; private String parameterValue; public InvalidParameterValueException(String parameterName, String parameterValue) { super("invalid parameter value.", null); this.parameterName = parameterName; this.parameterValue = parameterValue; } public String getParameterName() { return parameterName; } public String getParameterValue() { return parameterValue; } public String toString() { return "InvalidParameterValueException, "+ "parametername="+getParameterName()+ ", parametervalue="+getParameterValue(); } } --- NEW FILE: MissingRequiredParameterException.java --- /* Copyright (C) 2004 Davide Consonni <dco...@en...> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ package net.sf.csv2sql.renders.exceptions; /** * throwed when a required renders' parameter is missing. * @author <a href="mailto:dco...@en...">Davide Consonni</a> */ public class MissingRequiredParameterException extends Exception { private String parameterName; public MissingRequiredParameterException(String parameterName) { super("missing renderer's required parameter: " + parameterName); } public String getMissingParameter() { return parameterName; } } |