org.picocontainer

Class PicoException

public abstract class PicoException extends RuntimeException

Superclass for all Exceptions in PicoContainer. You can use this if you want to catch all exceptions thrown by PicoContainer. Be aware that some parts of the PicoContainer API will also throw NullPointerException when null values are provided for method arguments, and this is not allowed.

Since: 1.0

Constructor Summary
protected PicoException()
Construct a new exception with no cause and no detail message.
protected PicoException(String message)
Construct a new exception with no cause and the specified detail message.
protected PicoException(Throwable cause)
Construct a new exception with the specified cause and no detail message.
protected PicoException(String message, Throwable cause)
Construct a new exception with the specified cause and the specified detail message.
Method Summary
ThrowablegetCause()
Retrieve the exception that caused this one.
voidprintStackTrace()
Overridden to provide 1.4 style stack traces on pre-1.4.
voidprintStackTrace(PrintStream s)
Overridden to provide 1.4 style stack traces on pre-1.4.
voidprintStackTrace(PrintWriter s)
Overridden to provide 1.4 style stack traces on pre-1.4.

Constructor Detail

PicoException

protected PicoException()
Construct a new exception with no cause and no detail message. Note modern JVMs may still track the exception that caused this one.

PicoException

protected PicoException(String message)
Construct a new exception with no cause and the specified detail message. Note modern JVMs may still track the exception that caused this one.

Parameters: message the message detailing the exception.

PicoException

protected PicoException(Throwable cause)
Construct a new exception with the specified cause and no detail message.

Parameters: cause the exception that caused this one.

PicoException

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

Parameters: message the message detailing the exception. cause the exception that caused this one.

Method Detail

getCause

public Throwable getCause()
Retrieve the exception that caused this one.

Returns: the exception that caused this one, or null if it was not set.

See Also: Throwable#getCause() the method available since JDK 1.4 that is overridden by this method.

printStackTrace

public void printStackTrace()
Overridden to provide 1.4 style stack traces on pre-1.4.

Parameters: s the PrintStream used to print the stack trace

printStackTrace

public void printStackTrace(PrintStream s)
Overridden to provide 1.4 style stack traces on pre-1.4.

printStackTrace

public void printStackTrace(PrintWriter s)
Overridden to provide 1.4 style stack traces on pre-1.4.

Parameters: s the PrintWriter used to print the stack trace