001    /*
002     * Zmanim Java API
003     * Copyright (C) 2004-2007 Eliyahu Hershfeld
004     * 
005     * This program is free software; you can redistribute it and/or modify it under the terms of the
006     * GNU General Public License as published by the Free Software Foundation; either version 2 of the
007     * License, or (at your option) any later version.
008     * 
009     * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
010     * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
011     * General Public License for more details.
012     * 
013     * You should have received a copy of the GNU General Public License along with this program; if
014     * not, write to the Free Software Foundation, Inc. 59 Temple Place - Suite 330, Boston, MA
015     * 02111-1307, USA or connect to: http://www.fsf.org/copyleft/gpl.html
016     */
017    package net.sourceforge.zmanim;
018    
019    /**
020     * ZmanimException is the <code>Exception</code> class for the Zmanim package.
021     * It is a runtime exception and does not have to be caught. It is not used used
022     * when a calculation can't take place such as sunrise not taking place for a
023     * specific date due to extreme Norther or Southern locations, since this will
024     * commonly occur in locations such as England when used for some calculations
025     * in the {@link ComplexZmanimCalendar} and is really not an error. In such situations a null or {@link java.lang.Double.NaN} will be returned. For a
026     * more detailed explanation about the lack of <code>Exception</code> throwing
027     * in these situations, see the comments on the {@link AstronomicalCalendar}.
028     * 
029     * @author © Eliyahu Hershfeld 2004 - 2007
030     * @version 1.1
031     */
032    public class ZmanimException extends RuntimeException {
033            private static final long serialVersionUID = 1;
034    
035            public ZmanimException() {
036                    super("An unknow Zmanim problem occurred");
037            }
038    
039            public ZmanimException(String message) {
040                    super(message);
041            }
042    }