public class FormatterDiagnostic
extends java.lang.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,
java.lang.String message) |
static FormatterDiagnostic |
create(java.lang.String message) |
int |
line()
Returns the line number on which the error occurred, or
-1 if the error does not have a
line number. |
java.lang.String |
message()
Returns a description of the problem that prevented formatting from succeeding.
|
java.lang.String |
toString() |
public static FormatterDiagnostic create(java.lang.String message)
public static FormatterDiagnostic create(int lineNumber, int column, java.lang.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 java.lang.String message()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2015-2018 Google Inc.. All Rights Reserved.