|
|||||||||
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.codehaus.backport175.compiler.CompilerException
public class CompilerException
Thrown when error in compilation of the annotations. Those errors should interrupts the compilation.
Field Summary | |
---|---|
protected java.lang.Throwable |
m_originalException
Original exception which caused this exception. |
protected SourceLocation |
m_sourceLocation
Optional location hint |
Constructor Summary | |
---|---|
CompilerException(java.lang.String message)
Sets the message for the exception. |
|
CompilerException(java.lang.String message,
SourceLocation sourceLocation)
Sets the message and location for the exception. |
|
CompilerException(java.lang.String message,
java.lang.Throwable throwable)
Sets the message for the exception and the original exception being wrapped. |
Method Summary | |
---|---|
SourceLocation |
getLocation()
Returns the source location for the exception. |
void |
printStackTrace()
Print the full stack trace, including the original exception. |
void |
printStackTrace(java.io.PrintStream ps)
Print the full stack trace, including the original exception. |
void |
printStackTrace(java.io.PrintWriter pw)
Print the full stack trace, including the original exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, 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 |
---|
protected java.lang.Throwable m_originalException
protected SourceLocation m_sourceLocation
Constructor Detail |
---|
public CompilerException(java.lang.String message)
message
- the messagepublic CompilerException(java.lang.String message, SourceLocation sourceLocation)
message
- the messagesourceLocation
- public CompilerException(java.lang.String message, java.lang.Throwable throwable)
message
- the detail of the error messagethrowable
- the original exceptionMethod Detail |
---|
public void printStackTrace()
printStackTrace
in class java.lang.Throwable
public void printStackTrace(java.io.PrintStream ps)
printStackTrace
in class java.lang.Throwable
ps
- the byte stream in which to print the stack tracepublic void printStackTrace(java.io.PrintWriter pw)
printStackTrace
in class java.lang.Throwable
pw
- the character stream in which to print the stack tracepublic SourceLocation getLocation()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |