Index: lutinutil/src/java/org/codelutin/util/OptionDefinitionParserException.java diff -u /dev/null lutinutil/src/java/org/codelutin/util/OptionDefinitionParserException.java:1.1 --- /dev/null Sat Nov 17 11:07:25 2007 +++ lutinutil/src/java/org/codelutin/util/OptionDefinitionParserException.java Sat Nov 17 11:07:20 2007 @@ -0,0 +1,43 @@ +/**##% + * Copyright (C) 2002, 2007 Code Lutin + * + * 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 org.codelutin.util; + +/** + * Exception soulevable uniquement par le parser de définition d'option. + *
+ * Cette exception est de type runtime, car une telle exception est toujours + * fatale et le parseur de définition est exécuté indépendemment de toute + * application finale (voir maven-commandline-plugin). + * + * @author chemit + * @see OptionDefinitionParser + */ +public class OptionDefinitionParserException extends RuntimeException { // OptionDefinitionParserException + private static final long serialVersionUID = -3283937669966903905L; + + + public OptionDefinitionParserException(String msg) { + super(msg); + } + + public OptionDefinitionParserException(String msg, Throwable eee) { + super(msg, eee); + } + +} // OptionDefinitionParserException \ No newline at end of file Index: lutinutil/src/java/org/codelutin/util/OptionParserException.java diff -u /dev/null lutinutil/src/java/org/codelutin/util/OptionParserException.java:1.1 --- /dev/null Sat Nov 17 11:07:25 2007 +++ lutinutil/src/java/org/codelutin/util/OptionParserException.java Sat Nov 17 11:07:20 2007 @@ -0,0 +1,38 @@ +/**##% + * Copyright (C) 2002, 2003 Code Lutin + * + * 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 org.codelutin.util; + +/** + * Exception soulevable uniquement par le parser d'option. + * + * @author chemit + * @see OptionParser + */ +public class OptionParserException extends Exception { // OptionParserException + private static final long serialVersionUID = -7847751486506278509L; + + public OptionParserException(String msg) { + super(msg); + } + + public OptionParserException(String msg, Throwable eee) { + super(msg, eee); + } + +} // OptionParserException \ No newline at end of file