org.dbunit.util.concurrent
Class TimeoutException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.InterruptedException
org.dbunit.util.concurrent.TimeoutException
- All Implemented Interfaces:
- Serializable
public class TimeoutException
- extends InterruptedException
Thrown by synchronization classes that report
timeouts via exceptions. The exception is treated
as a form (subclass) of InterruptedException. This both
simplifies handling, and conceptually reflects the fact that
timed-out operations are artificially interrupted by timers.
- Since:
- ? (pre 2.1)
- Version:
- $Revision: 766 $ $Date: 2008-08-01 13:05:20 +0200 (Fri, 01 Aug 2008) $
- Author:
- Doug Lea, Last changed by: $Author: gommma $
- See Also:
- Serialized Form
Field Summary |
long |
duration
The approximate time that the operation lasted before
this timeout exception was thrown. |
Constructor Summary |
TimeoutException(long time)
Constructs a TimeoutException with given duration value. |
TimeoutException(long time,
String message)
Constructs a TimeoutException with the
specified duration value and detail message. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
duration
public final long duration
- The approximate time that the operation lasted before
this timeout exception was thrown.
TimeoutException
public TimeoutException(long time)
- Constructs a TimeoutException with given duration value.
TimeoutException
public TimeoutException(long time,
String message)
- Constructs a TimeoutException with the
specified duration value and detail message.
Copyright © 2002-2012. All Rights Reserved.