Source for de.webdings.tools.time.EasyDateCreateException

   1: /* EasyDateCreateException.java - Copyright (c) 2005 by Stefan Thesing
   2:  <p>This file is part of Webdings Tools.</p>
   3:  <p>Webdings Tools is free software; you can redistribute it and/or modify
   4:  it under the terms of the GNU General Public License as published by
   5:  the Free Software Foundation; either version 2 of the License, or
   6:  (at your option) any later version.</p>
   7: <p>Webdings Tools is distributed in the hope that it will be useful,
   8: but WITHOUT ANY WARRANTY; without even the implied warranty of
   9: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  10: GNU General Public License for more details.</p>
  11: <p>You should have received a copy of the GNU General Public License
  12: along with Webdings Tools; if not, write to the<br>
  13: Free Software Foundation, Inc.,<br>
  14: 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA<br>
  15: */
  16: package de.webdings.tools.time;
  17: 
  18: 
  19: /**
  20:  * EasyDateCreateException is used in the contstruction
  21:  * of {@link EasyDate}.
  22:  * Its thrown when an invalid month-value is specified.
  23:  * @author Stefan Thesing<br>
  24:  * Website: <a href="http://www.webdings.de">http://www.webdings.de</a>
  25:  * @version 1.0.1 10.08.2005
  26:  * @see EasyDate
  27:  * 
  28:  */
  29: public class EasyDateCreateException extends java.lang.Exception {
  30:     /**
  31:      * 
  32:      */
  33:     private static final long serialVersionUID = -4911661781409420883L;
  34: 
  35:     public EasyDateCreateException(int month) {
  36:         super("EasyDate could not be created. " + month + " is not a valid month-value. Note that January is represented by 1 not by 0!");
  37:     }
  38: }

© 2005 by Stefan Thesing;
Verbatim copying and redistribution of this entire page are permitted provided this notice is preserved.