public final class SoyErrors extends Object
| Constructor and Description |
|---|
SoyErrors() |
| Modifier and Type | Method and Description |
|---|---|
static String |
formatErrors(Iterable<SoyError> errors)
Formats the errors in a standard way for displaying to a user.
|
static String |
getDidYouMeanMessage(Iterable<String> allNames,
String wrongName)
Given a collection of strings and a name that isn't contained in it.
|
static String |
getDidYouMeanMessageForProtoFields(com.google.common.collect.ImmutableSet<String> fields,
String fieldName)
Same as
getDidYouMeanMessage(Iterable, String) but with some additional heuristics for
proto fields. |
public static String getDidYouMeanMessage(Iterable<String> allNames, String wrongName)
Returns the empty string if allNames is empty or there is no close match.
public static String getDidYouMeanMessageForProtoFields(com.google.common.collect.ImmutableSet<String> fields, String fieldName)
getDidYouMeanMessage(Iterable, String) but with some additional heuristics for
proto fields.