ParseException

public final class ParseException extends RuntimeException

The exception that should be thrown whenever parsing of a log message fails. This exception must not be thrown outside of template parsing.

See also

<a href="https://github.com/google/flogger/blob/cb9e836a897d36a78309ee8badf5cad4e6a2d3d8/api/src/main/java/com/google/common/flogger/parser/ParseException.java">

Original Java code of Google Flogger

Inherited properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
public static ParseException atPosition(String errorMessage, String logMessage, int position)
Creates a new parse exception for situations in which the position of the error is known.
Link copied to clipboard
public synchronized Throwable fillInStackTrace()
Link copied to clipboard
public static ParseException generic(String errorMessage, String logMessage)
Creates a new parse exception for cases where position is not relevant.
Link copied to clipboard
public static ParseException withBounds(String errorMessage, String logMessage, int start, int end)
Creates a new parse exception for situations in which both the start and end positions of the error are known.
Link copied to clipboard
public static ParseException withStartPosition(String errorMessage, String logMessage, int start)
Creates a new parse exception for situations in which only the start position of the error is known.

Inherited functions

Link copied to clipboard
public final synchronized void addSuppressed(Throwable exception)
Link copied to clipboard
public synchronized Throwable getCause()
Link copied to clipboard
Link copied to clipboard
public String getMessage()
Link copied to clipboard
Link copied to clipboard
public final synchronized Array<Throwable> getSuppressed()
Link copied to clipboard
public synchronized Throwable initCause(Throwable cause)
Link copied to clipboard
public void printStackTrace()
Link copied to clipboard
public void setStackTrace(Array<StackTraceElement> stackTrace)
Link copied to clipboard
public String toString()