org.apache.commons.discovery

Class DiscoveryException

public class DiscoveryException extends RuntimeException

An exception that is thrown only if a suitable service instance cannot be created by ServiceFactory

Copied from LogConfigurationException

Version: $Revision: 165666 $ $Date: 2005-05-02 20:37:26 +0100 (Mon, 02 May 2005) $

Author: Craig R. McClanahan

Field Summary
protected Throwablecause
The underlying cause of this exception.
Constructor Summary
DiscoveryException()
Construct a new exception with null as its detail message.
DiscoveryException(String message)
Construct a new exception with the specified detail message.
DiscoveryException(Throwable cause)
Construct a new exception with the specified cause and a derived detail message.
DiscoveryException(String message, Throwable cause)
Construct a new exception with the specified detail message and cause.
Method Summary
ThrowablegetCause()
Return the underlying cause of this exception (if any).
StringtoString()

Field Detail

cause

protected Throwable cause
The underlying cause of this exception.

Constructor Detail

DiscoveryException

public DiscoveryException()
Construct a new exception with null as its detail message.

DiscoveryException

public DiscoveryException(String message)
Construct a new exception with the specified detail message.

Parameters: message The detail message

DiscoveryException

public DiscoveryException(Throwable cause)
Construct a new exception with the specified cause and a derived detail message.

Parameters: cause The underlying cause

DiscoveryException

public DiscoveryException(String message, Throwable cause)
Construct a new exception with the specified detail message and cause.

Parameters: message The detail message cause The underlying cause

Method Detail

getCause

public Throwable getCause()
Return the underlying cause of this exception (if any).

toString

public String toString()
Copyright (c) 2002 - Apache Software Foundation