View Javadoc

1   package expectj;
2   
3   /***
4    * Timeout while waiting for a {@link Spawn}.
5    * @author johan.walles@gmail.com
6    */
7   public class TimeoutException extends Exception {
8       /***
9        * Create a new exception with an explanatory message.
10       * @param message An explanation of what went wrong.
11       */
12      TimeoutException(String message) {
13          super(message);
14      }
15  
16      /***
17       * Create a new exception with an explanatory message and a reference to an exception
18       * that made us throw this one.
19       * @param message An explanation of what went wrong.
20       * @param cause Another exception that is the reason to throw this one.
21       */
22      TimeoutException(String message, Throwable cause) {
23          super(message, cause);
24      }
25  }