Class FormatterDiagnostic

java.lang.Object
com.google.googlejavaformat.FormatterDiagnostic

public class FormatterDiagnostic extends Object
An error that prevented formatting from succeeding.
  • Method Details

    • create

      public static FormatterDiagnostic create(String message)
    • create

      public static FormatterDiagnostic create(int lineNumber, int column, String message)
    • line

      public int line()
      Returns the line number on which the error occurred, or -1 if the error does not have a line number.
    • column

      public int column()
      Returns the 0-indexed column number on which the error occurred, or -1 if the error does not have a column.
    • message

      public String message()
      Returns a description of the problem that prevented formatting from succeeding.
    • toString

      public String toString()
      Overrides:
      toString in class Object