public class CompilerException
extends java.lang.RuntimeException
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Throwable |
m_originalException
Original exception which caused this exception.
|
protected SourceLocation |
m_sourceLocation
Optional location hint
|
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected java.lang.Throwable m_originalException
protected SourceLocation m_sourceLocation
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 exceptionpublic void printStackTrace()
printStackTrace in class java.lang.Throwablepublic void printStackTrace(java.io.PrintStream ps)
printStackTrace in class java.lang.Throwableps - the byte stream in which to print the stack tracepublic void printStackTrace(java.io.PrintWriter pw)
printStackTrace in class java.lang.Throwablepw - the character stream in which to print the stack tracepublic SourceLocation getLocation()