| Interface | Description |
|---|---|
| ErrorReporter |
Collects errors during parsing.
|
| ErrorReporter.Checkpoint |
Opaque token, used by
ErrorReporter.checkpoint() and ErrorReporter.errorsSince(com.google.template.soy.error.ErrorReporter.Checkpoint). |
| SoyError.Factory |
A factory for constructing Errors.
|
| Class | Description |
|---|---|
| AbstractErrorReporter |
Abstract ErrorReporter implementation that implements
AbstractErrorReporter.checkpoint() and
ErrorReporter.errorsSince(Checkpoint) in terms of a template method
AbstractErrorReporter.getCurrentNumberOfErrors(). |
| ExplodingErrorReporter |
ErrorReporter implementation that throws an AssertionError whenever an error
is reported to it. |
| FormattingErrorReporter |
ErrorReporter implementation that formats
SoyErrorKinds without attaching source locations. |
| PrettyErrorFactory |
Displays
SoyErrorKinds in a useful way, with a snippet of Soy source
code containing the error and a caret pointing at the exact place where the error was found. |
| SnippetFormatter |
Fetches a snippet of source code surrounding a given
SourceLocation. |
| SoyError |
A structured error object for reporting
|
| SoyErrorKind |
Represents any syntactic or semantic error made by a Soy template author, which can be
collected during compilation and displayed back to the author.
|
| Exception | Description |
|---|---|
| SoyCompilationException |
Reports on all Soy compilation errors and allows for programmatic inspection via
SoyCompilationException.getErrors(). |