1 /* 2 3 dsh-timer Timer with nanosecond resolution and summary statistics 4 on recorded elapsed times. 5 Copyright (c) 2004-2013 held jointly by the individual authors. 6 7 This library is free software; you can redistribute it and/or modify it 8 under the terms of the GNU Lesser General Public License as published 9 by the Free Software Foundation; either version 3 of the License, or (at 10 your option) any later version. 11 12 This library is distributed in the hope that it will be useful, but WITHOUT 13 ANY WARRANTY; with out even the implied warranty of MERCHANTABILITY or 14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 15 License for more details. 16 17 You should have received a copy of the GNU Lesser General Public License 18 along with this library; if not, write to the Free Software Foundation, 19 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. 20 21 > http://www.fsf.org/licensing/licenses/lgpl.html 22 > http://www.opensource.org/licenses/lgpl-license.php 23 24 */ 25 package org.dishevelled.timer; 26 27 /** 28 * Runtime exception thrown in the event that a timer 29 * is stopped before it has been started. 30 * 31 * @see Timer#start 32 * @see Timer#stop 33 * @author Michael Heuer 34 */ 35 public class TimerException 36 extends RuntimeException 37 { 38 39 /** 40 * Create a new timer expection with <code>null</code> as its 41 * detail message. 42 */ 43 public TimerException() 44 { 45 super(); 46 } 47 48 /** 49 * Create a new timer exception with the specified detail message. 50 * 51 * @param message detail message 52 */ 53 public TimerException(final String message) 54 { 55 super(message); 56 } 57 58 /** 59 * Create a new timer exception with the specified detail message and cause. 60 * 61 * @param message detail message 62 * @param cause cause 63 */ 64 public TimerException(final String message, final Throwable cause) 65 { 66 super(message, cause); 67 } 68 69 /** 70 * Create a new timer exception with the specified cause. 71 * 72 * @param cause cause 73 */ 74 public TimerException(final Throwable cause) 75 { 76 super(cause); 77 } 78 }