Update of /cvsroot/csvtosql/csvtosql_jdk50/src/net/sf/csv2sql/grammars/exceptions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15138/net/sf/csv2sql/grammars/exceptions
Added Files:
FieldRenderException.java GrammarFactoryException.java
MissingRequiredParameterException.java
Log Message:
no message
--- NEW FILE: GrammarFactoryException.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.grammars.exceptions;
/**
* Is throwed when the grammar factory can't create the selected field.
* @author <a href="mailto:dco...@en...">Davide Consonni</a>
*/
public class GrammarFactoryException extends Exception {
public GrammarFactoryException(String message, Throwable cause) {
super(message, cause);
}
public GrammarFactoryException(Throwable cause) {
super(cause);
}
}
--- NEW FILE: FieldRenderException.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.grammars.exceptions;
import net.sf.csv2sql.grammars.AbstractField;
/**
* Is throwed when the fiel cannot render the value.
* @author <a href="mailto:dco...@en...">Davide Consonni</a>
*/
public class FieldRenderException extends java.lang.Exception {
private AbstractField field;
private Object value;
public FieldRenderException(AbstractField field, Object value, String message, Throwable cause) {
super(message, cause);
this.field = field;
this.value = value;
}
public AbstractField getField() {
return this.field;
}
public Object getValue() {
return this.value;
}
}
--- NEW FILE: MissingRequiredParameterException.java ---
package net.sf.csv2sql.grammars.exceptions;
/**
* @author <a href="mailto:dco...@en...">Davide Consonni</a>
*/
public class MissingRequiredParameterException extends Exception {
private String parameterName;
public MissingRequiredParameterException(String parameterName) {
super("missing field's required parameter : " + parameterName);
}
public String getMissingParameter() {
return parameterName;
}
}
|