org.apache.avalon.framework.availability

Class UnavailableException

public class UnavailableException extends RuntimeException

Exception to signal component is not available. UnavailableException is thrown in any method to another component, but only if the caller implements AvailabilityAware.

Since: 4.5

Version: $Id$

Author: Avalon Development Team

Field Summary
Stringm_Key
Constructor Summary
UnavailableException(String message, String key)
Constructor.
Method Summary
StringgetLookupKey()
Returns the key to the component that is no longer available.

Field Detail

m_Key

private String m_Key

Constructor Detail

UnavailableException

public UnavailableException(String message, String key)
Constructor.

Parameters: message The non-localized message to be embedded into the exception. key The key that the caller used to lookup the component with.

Method Detail

getLookupKey

public String getLookupKey()
Returns the key to the component that is no longer available.