Class JsonMLError
- java.lang.Object
-
- com.google.javascript.jscomp.jsonml.JsonMLError
-
public class JsonMLError extends java.lang.Object
Class used to represent errors which correspond to JsonML elements.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
description
Description of the errorJsonML
element
Node where the warning occurred.ErrorLevel
level
Levelint
lineNumber
Line number of the sourcejava.lang.String
sourceName
Name of the source
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JsonMLError
make(DiagnosticType type, java.lang.String sourceName, JsonML element, int lineNumber, ErrorLevel level, java.lang.String... arguments)
static JsonMLError
make(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)
-
-