org.apache.avalon.composition.model
Class TransientRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.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
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 |
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
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.