[marf-cvs] marf/src/marf/Classification ClassificationException.java, 1.11, 1.12
Brought to you by:
mokhov
From: Serguei A. M. <mo...@us...> - 2007-11-30 15:58:43
|
Update of /cvsroot/marf/marf/src/marf/Classification In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11891/marf/Classification Modified Files: ClassificationException.java Log Message: Have a take on the MARF Exceptions framework (one of more steps to follow). Add a notion of MARFRuntimeException. Begin implementing the ExceptionFactory and a factory method in the exception classes. As such introduce the IMARFException interface. Refactor away the exception's common code into the new class called ExceptionUtils. Lift restriction of MARFException.getMessage() being final thereby allowing the derivatives to override it. Was necessitated by some clients, e.g. GIPSY's ParseException and others. Add a default constructor to the ClassificationException to be consistent with the generic ones. The rest is mostly cosmetic. Index: ClassificationException.java =================================================================== RCS file: /cvsroot/marf/marf/src/marf/Classification/ClassificationException.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** ClassificationException.java 11 Aug 2005 00:44:50 -0000 1.11 --- ClassificationException.java 30 Nov 2007 15:58:25 -0000 1.12 *************** *** 3,11 **** import marf.util.MARFException; /** * <p>Class ClassificationException indicates an error * during classification process.</p> * ! * <p>$Id$</p> * * @author Serguei Mokhov --- 3,12 ---- import marf.util.MARFException; + /** * <p>Class ClassificationException indicates an error * during classification process.</p> * ! * $Id$ * * @author Serguei Mokhov *************** *** 26,29 **** --- 27,40 ---- /** + * Constructs a default classification exception with the message + * the same as the class name. + * @since 0.3.0.6 + */ + public ClassificationException() + { + super(ClassificationException.class.getName()); + } + + /** * Generic exception. * @param pstrMessage Error message string |