public final class SoyErrorKind extends Object
string arguments.
Classes that report SoyErrorKinds should declare them as static final fields, making it easy for readers to inspect the errors that the class could report.
Error messages should be capitalized, and concluded with a punctuation mark.
| Modifier and Type | Class and Description |
|---|---|
static class |
SoyErrorKind.StyleAllowance
Enum to enable exceptions to Soy error message formatting rules.
|
| Modifier and Type | Method and Description |
|---|---|
String |
format(Object... args) |
static SoyErrorKind |
of(String format,
SoyErrorKind.StyleAllowance... exceptions) |
String |
toString() |
public static SoyErrorKind of(String format, SoyErrorKind.StyleAllowance... exceptions)