org.apache.avalon.composition.model
Class TransientRuntimeException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.apache.avalon.composition.model.TransientRuntimeException
All Implemented Interfaces:
Serializable

public class TransientRuntimeException
extends RuntimeException

Exception to indicate that there was a transient service error. The exception exposes a delay value which is the anticipated delay in service availability. A delay value of 0 indicates an unknown delay.

Version:
$Revision: 1.2 $ $Date: 2004/02/14 21:33:56 $
Author:
Avalon Development Team
See Also:
Serialized Form

Constructor Summary
TransientRuntimeException(String message, long delay)
          Construct a new TransientRuntimeException instance.
 
Method Summary
 long getDelay()
          Returns the expected duration of service non-availability.
 
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

TransientRuntimeException

public TransientRuntimeException(String message,
                                 long delay)
Construct a new TransientRuntimeException instance.

Parameters:
message - The detail message for this exception.
delay - expected service availability delay in milliseconds
Method Detail

getDelay

public long getDelay()
Returns the expected duration of service non-availability.

Returns:
the non-availability duration


Copyright © The Apache Software Foundation. All Rights Reserved.