public class GoloCompilationException extends 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(String message)
Makes a new compiler exception with a message.
|
GoloCompilationException(String message,
Throwable cause)
Makes a new exception from a message and a root cause.
|
GoloCompilationException(Throwable throwable)
Makes a new compiler exception from a root cause.
|
| Modifier and Type | Method and Description |
|---|---|
List<GoloCompilationException.Problem> |
getProblems() |
String |
getSourceCode()
Gives the problematic source code, if specified.
|
void |
setSourceCode(String sourceCode)
Specifies the problematic source code.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic GoloCompilationException(String message)
message - the message.public GoloCompilationException(Throwable throwable)
throwable - the cause.public List<GoloCompilationException.Problem> getProblems()
public String getSourceCode()
null if none has been specified.public void setSourceCode(String sourceCode)
sourceCode - the raw source code.Copyright © 2014 Institut National des Sciences Appliquées de Lyon (INSA-Lyon). All Rights Reserved.