View Javadoc

1   /*
2   
3       dsh-timer  Timer with nanosecond resolution and summary statistics
4       on recorded elapsed times.
5       Copyright (c) 2004-2012 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   * @version $Revision: 1059 $ $Date: 2012-01-03 14:03:02 -0600 (Tue, 03 Jan 2012) $
35   */
36  public class TimerException
37      extends RuntimeException
38  {
39  
40      /**
41       * Create a new timer expection with <code>null</code> as its
42       * detail message.
43       */
44      public TimerException()
45      {
46          super();
47      }
48  
49      /**
50       * Create a new timer exception with the specified detail message.
51       *
52       * @param message detail message
53       */
54      public TimerException(final String message)
55      {
56          super(message);
57      }
58  
59      /**
60       * Create a new timer exception with the specified detail message and cause.
61       *
62       * @param message detail message
63       * @param cause cause
64       */
65      public TimerException(final String message, final Throwable cause)
66      {
67          super(message, cause);
68      }
69  
70      /**
71       * Create a new timer exception with the specified cause.
72       *
73       * @param cause cause
74       */
75      public TimerException(final Throwable cause)
76      {
77          super(cause);
78      }
79  }