KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > schlichtherle > awt > EventDispatchTimeoutException


1 /*
2  * EventDispatchTimeoutException.java
3  *
4  * Created on 19. Dezember 2006, 14:34
5  */

6 /*
7  * Copyright 2006 Schlichtherle IT Services
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  */

21
22 package de.schlichtherle.awt;
23
24 /**
25  * Thrown to indicate a timeout while waiting for the AWT Event Dispatch
26  * Thread (EDT).
27  *
28  * @author Christian Schlichtherle
29  * @since TrueZIP 6.4
30  * @version @version@
31  */

32 public class EventDispatchTimeoutException extends Exception JavaDoc {
33
34     private final long timeout;
35
36     /**
37      * Creates a new instance of <code>EventDispatchTimeoutException</code> without detail message.
38      */

39     EventDispatchTimeoutException(final long timeout) {
40         super("Waiting for the EDT timed out after milliseconds: " + timeout);
41         this.timeout = timeout;
42     }
43
44     public long getTimeout() {
45         return timeout;
46     }
47 }
48
Popular Tags