1
2 package javax.agent.service;
3
4 import javax.agent.*;
5
6 /***
7 * Thrown when the time has passed over a specifed time-out.
8 */
9 public class TimeoutException extends JasException {
10 /***
11 * Creates a TimeoutException instance with no messsages.
12 */
13 public TimeoutException() {
14 super();
15 }
16
17 /***
18 * Creates a TimeoutException instance with the specified message.
19 */
20 public TimeoutException(String msg) {
21 super(msg);
22 }
23
24 /***
25 * Creates a TimeoutException instance with specifying the time in milliseconds.
26 */
27 public TimeoutException(long millis) {
28 this((new Long(millis)).toString());
29 }
30 }