|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.picocontainer.PicoException
public abstract class PicoException
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.
Field Summary | |
---|---|
private java.lang.Throwable |
cause
The exception that caused this one. |
Constructor Summary | |
---|---|
protected |
PicoException()
Construct a new exception with no cause and no detail message. |
protected |
PicoException(java.lang.String message)
Construct a new exception with no cause and the specified detail message. |
protected |
PicoException(java.lang.String message,
java.lang.Throwable cause)
Construct a new exception with the specified cause and the specified detail message. |
protected |
PicoException(java.lang.Throwable cause)
Construct a new exception with the specified cause and no detail message. |
Method Summary | |
---|---|
java.lang.Throwable |
getCause()
Retrieve the exception that caused this one. |
void |
printStackTrace()
Overridden to provide 1.4 style stack traces on pre-1.4. |
void |
printStackTrace(java.io.PrintStream s)
Overridden to provide 1.4 style stack traces on pre-1.4. |
void |
printStackTrace(java.io.PrintWriter s)
Overridden to provide 1.4 style stack traces on pre-1.4. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.Throwable cause
Constructor Detail |
---|
protected PicoException()
protected PicoException(java.lang.String message)
message
- the message detailing the exception.protected PicoException(java.lang.Throwable cause)
cause
- the exception that caused this one.protected PicoException(java.lang.String message, java.lang.Throwable cause)
message
- the message detailing the exception.cause
- the exception that caused this one.Method Detail |
---|
public java.lang.Throwable getCause()
getCause
in class java.lang.Throwable
the method available since JDK 1.4 that is overridden by this method.
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
s
- the PrintStream
used to print the stack tracepublic void printStackTrace(java.io.PrintStream s)
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintWriter s)
printStackTrace
in class java.lang.Throwable
s
- the PrintWriter
used to print the stack trace
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |