public class GoloCompilationException extends java.lang.RuntimeException
Modifier and Type | Class and Description |
---|---|
static class |
GoloCompilationException.Builder
An exception builder object allows preparing an exception by progressively adding problems.
|
static class |
GoloCompilationException.Problem
A problem reported either while compiling the source code or processing the intermediate representation.
|
Constructor and Description |
---|
GoloCompilationException(java.lang.String message)
Makes a new compiler exception with a message.
|
GoloCompilationException(java.lang.String message,
java.lang.Throwable cause)
Makes a new exception from a message and a root cause.
|
GoloCompilationException(java.lang.Throwable throwable)
Makes a new compiler exception from a root cause.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<GoloCompilationException.Problem> |
getProblems() |
java.lang.String |
getSourceCode()
Gives the problematic source code, if specified.
|
void |
setSourceCode(java.lang.String sourceCode)
Specifies the problematic source code.
|
public GoloCompilationException(java.lang.String message)
message
- the message.public GoloCompilationException(java.lang.Throwable throwable)
throwable
- the cause.public GoloCompilationException(java.lang.String message, java.lang.Throwable cause)
message
- the message.cause
- the cause.public java.util.List<GoloCompilationException.Problem> getProblems()
public java.lang.String getSourceCode()
null
if none has been specified.public void setSourceCode(java.lang.String sourceCode)
sourceCode
- the raw source code.