mandala.util
Class TimedOutException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bymandala.util.TimedOutException
All Implemented Interfaces:
java.io.Serializable

public class TimedOutException
extends java.lang.Exception

Exception thrown when an operation timed out.

Version:
$Revision: 1.5 $
Author:
eipi
See Also:
Serialized Form

Constructor Summary
TimedOutException(java.lang.String msg, long timeout, long time)
          Creates a new TimedOutException instance.
 
Method Summary
 long getTime()
          Returns the real time (>timeout) which cause this exception to be thrown.
 long getTimeout()
          Returns the maximum amount of time requested.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimedOutException

public TimedOutException(java.lang.String msg,
                         long timeout,
                         long time)

Creates a new TimedOutException instance.

Parameters:
timeout - The maximum amount of time requested
time - The real time (>timeout) which cause this exception to be thrown
msg - A message
Throws:
java.lang.IllegalArgumentException - if time <= timeout
Method Detail

getTimeout

public long getTimeout()

Returns the maximum amount of time requested.

Returns:
the maximum amount of time requested

getTime

public long getTime()

Returns the real time (>timeout) which cause this exception to be thrown.

Returns:
the real time (>timeout) which cause this exception to be thrown


Mandala help mailing list