public final class LightweightMessageFormatter extends AbstractMessageFormatter
| Constructor and Description |
|---|
LightweightMessageFormatter(SourceExcerptProvider source) |
LightweightMessageFormatter(SourceExcerptProvider source,
SourceExcerptProvider.SourceExcerpt excerpt) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
formatError(JSError error)
Format an error.
|
java.lang.String |
formatWarning(JSError warning)
Format a warning.
|
LightweightMessageFormatter |
setIncludeLevel(boolean includeLevel) |
LightweightMessageFormatter |
setIncludeLocation(boolean includeLocation) |
static LightweightMessageFormatter |
withoutSource() |
getSource, maybeEmbolden, setColorizepublic LightweightMessageFormatter(SourceExcerptProvider source)
public LightweightMessageFormatter(SourceExcerptProvider source, SourceExcerptProvider.SourceExcerpt excerpt)
public static LightweightMessageFormatter withoutSource()
public LightweightMessageFormatter setIncludeLocation(boolean includeLocation)
public LightweightMessageFormatter setIncludeLevel(boolean includeLevel)
public java.lang.String formatError(JSError error)
MessageFormatterpublic java.lang.String formatWarning(JSError warning)
MessageFormatterCopyright © 2009-2020 Google. All Rights Reserved.