jfun.yan
Class YanException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by jfun.yan.YanException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AmbiguousComponentResolutionException, ComponentInstantiationException, ComponentResolutionException, CyclicDependencyException, InternalException, InvalidPropertyException, NullBeanObjectException, TypeMismatchException, UnknownComponentTypeException

public class YanException
extends java.lang.RuntimeException

The root exception representing any container or component related exception.

Codehaus.org.

Author:
Ben Yu
See Also:
Serialized Form

Constructor Summary
YanException()
           
YanException(java.lang.String arg0)
           
YanException(java.lang.String message, java.lang.Throwable cause)
           
YanException(java.lang.Throwable cause)
           
 
Method Summary
 void clearResolutionTrace()
          Clear the resolution trace.
 java.util.Stack getResolutionTrace()
          Get the resolution trace.
 void printResolutionTrace()
          Prints the resolution trace to the standard error output.
 void printResolutionTrace(java.io.PrintStream out)
          Print the resolution trace.
 void printResolutionTrace(java.io.PrintWriter out)
          Print the resultion trace.
 void printStackTrace(java.io.PrintStream s)
           
 void printStackTrace(java.io.PrintWriter s)
           
 void push(java.lang.Object obj)
          Pushes a resolution frame to the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

YanException

public YanException(java.lang.String arg0)

YanException

public YanException()

YanException

public YanException(java.lang.String message,
                    java.lang.Throwable cause)

YanException

public YanException(java.lang.Throwable cause)
Method Detail

push

public void push(java.lang.Object obj)
Pushes a resolution frame to the exception.

Parameters:
obj - the frame.

getResolutionTrace

public java.util.Stack getResolutionTrace()
Get the resolution trace.

Returns:
the resolution trace.

printResolutionTrace

public void printResolutionTrace(java.io.PrintStream out)
Print the resolution trace.

Parameters:
out - the output stream.

printResolutionTrace

public void printResolutionTrace(java.io.PrintWriter out)
Print the resultion trace.

Parameters:
out - the output writer.

printResolutionTrace

public void printResolutionTrace()
Prints the resolution trace to the standard error output.


printStackTrace

public void printStackTrace(java.io.PrintStream s)
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Overrides:
printStackTrace in class java.lang.Throwable

clearResolutionTrace

public void clearResolutionTrace()
Clear the resolution trace.