JThreadKitTM
v1.1.0
(public members only)

com.jthreadkit
Class TimedOutException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--com.jthreadkit.TimedOutException
All Implemented Interfaces:
Serializable

public class TimedOutException
extends RuntimeException

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.

See Also:
Serialized Form

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

TimedOutException

public TimedOutException(String msg)
Constructs a new instance with the specified message.

TimedOutException

public TimedOutException()
Constructs a new instance with no detail message.

JThreadKitTM
v1.1.0
(public members only)

© Copyright 2000-2001 Programix Incorporated. All rights reserved. JThreadKit home