public class FormatterDiagnostic extends Object
Modifier and Type | Method and Description |
---|---|
int |
column()
Returns the 0-indexed column number on which the error occurred, or
-1 if the error
does not have a column. |
static FormatterDiagnostic |
create(int lineNumber,
int column,
String message) |
static FormatterDiagnostic |
create(String message) |
int |
line()
Returns the line number on which the error occurred, or
-1 if the error does not have a
line number. |
String |
message()
Returns a description of the problem that prevented formatting from succeeding.
|
String |
toString() |
public static FormatterDiagnostic create(String message)
public static FormatterDiagnostic create(int lineNumber, int column, String message)
public int line()
-1
if the error does not have a
line number.public int column()
-1
if the error
does not have a column.public String message()
Copyright © 2015–2016 Google Inc.. All rights reserved.