|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.naftulin.classpathexplorer.stacktrace.impl.StackTraceElementExtension
Combines stack element with resource information. The class is useful when
it is needed to know which resource generates an exception. getExceptionDecorator(java.lang.Exception)
should
be used to wrap the exception. When the wrapped exception is printed out,
(for example to log file), each stack trace element will have resource information
available in addition to the stack trace information.
Constructor Summary | |
StackTraceElementExtension(java.lang.StackTraceElement element)
Creates a stack trace extension based on the stack trace element. |
Method Summary | |
java.lang.String |
getArchiveName()
Returns the name of the archive the class resides in, or not found if class was not found. |
java.io.File |
getClassArchiveSource()
Returns the file for archive for the class that this instance of the stack trace is describing. |
static java.lang.Exception |
getExceptionDecorator(java.lang.Exception e)
Returns exception that the stack trace with additional resource information. |
java.lang.StackTraceElement |
getStackTraceElement()
Returns the stack trace element. |
boolean |
isDirectory()
Returns true if the class described in this stack trace is loaded from directory. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StackTraceElementExtension(java.lang.StackTraceElement element)
element
- Method Detail |
public java.io.File getClassArchiveSource()
public java.lang.StackTraceElement getStackTraceElement()
public boolean isDirectory()
public java.lang.String getArchiveName()
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.Exception getExceptionDecorator(java.lang.Exception e)
exception
- that will be decorated, resorce infomation will be added.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |