org.apache.commons.discovery
Class DiscoveryException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.commons.discovery.DiscoveryException
All Implemented Interfaces:
Serializable

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: 480374 $ $Date: 2006-11-29 04:33:25 +0100 (Mi, 29. Nov 2006) $
Author:
Craig R. McClanahan
See Also:
Serialized Form

Field Summary
protected  Throwable cause
          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(String message, Throwable cause)
          Construct a new exception with the specified detail message and cause.
DiscoveryException(Throwable cause)
          Construct a new exception with the specified cause and a derived detail message.
 
Method Summary
 Throwable getCause()
          Return the underlying cause of this exception (if any).
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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).

Overrides:
getCause in class Throwable

toString

public String toString()
Overrides:
toString in class Throwable


Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.