|
JThreadKitTM v1.1.0 ( public members only)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--com.jthreadkit.TimedOutException
This exception is potentially thrown from methods throughout
JThreadKit that allow a timeout value to be specified.
Timing out while waiting for something to occur may or may
not be an exceptional situation--it depends on
the individual application. Many of the classes in JThreadKit
allow you to specify through the TimedOutExceptionOption
whether or not you consider a timeout to be something that
should result in an exception being thrown or whether a timeout
is routine and should just return a value (very often
false) to indicate that the timeout occurred.
To allow for this flexibility, TimedOutException
extends RuntimeException so a try-catch
construct is not required in situations where you know
the the option to throw TimedOutException has
not been selected.
| Constructor Summary | |
TimedOutException()
Constructs a new instance with no detail message. |
|
TimedOutException(String msg)
Constructs a new instance with the specified message. |
|
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TimedOutException(String msg)
public TimedOutException()
|
JThreadKitTM v1.1.0 ( public members only)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||