Module com.google.googlejavaformat
Package com.google.googlejavaformat.java
Class FormatterException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.google.googlejavaformat.java.FormatterException
- All Implemented Interfaces:
Serializable
public final class FormatterException extends Exception
Checked exception class for formatter errors.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description FormatterException(FormatterDiagnostic diagnostic)FormatterException(Iterable<FormatterDiagnostic> diagnostics)FormatterException(String message) -
Method Summary
Modifier and Type Method Description List<FormatterDiagnostic>diagnostics()static FormatterExceptionfromJavacDiagnostics(Iterable<Diagnostic<? extends JavaFileObject>> diagnostics)Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
Method Details
-
diagnostics
-
fromJavacDiagnostics
public static FormatterException fromJavacDiagnostics(Iterable<Diagnostic<? extends JavaFileObject>> diagnostics)
-