Class JsonMLError
- java.lang.Object
-
- com.google.javascript.jscomp.jsonml.JsonMLError
-
public class JsonMLError extends java.lang.ObjectClass used to represent errors which correspond to JsonML elements.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringdescriptionDescription of the errorJsonMLelementNode where the warning occurred.ErrorLevellevelLevelintlineNumberLine number of the sourcejava.lang.StringsourceNameName of the source
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JsonMLErrormake(DiagnosticType type, java.lang.String sourceName, JsonML element, int lineNumber, ErrorLevel level, java.lang.String... arguments)static JsonMLErrormake(JSError error, JsonMLAst ast)
-
-
-
Field Detail
-
description
public final java.lang.String description
Description of the error
-
sourceName
public final java.lang.String sourceName
Name of the source
-
element
public final JsonML element
Node where the warning occurred.
-
lineNumber
public final int lineNumber
Line number of the source
-
level
public final ErrorLevel level
Level
-
-
Method Detail
-
make
public static JsonMLError make(DiagnosticType type, java.lang.String sourceName, JsonML element, int lineNumber, ErrorLevel level, java.lang.String... arguments)
-
make
public static JsonMLError make(JSError error, JsonMLAst ast)
-
-