public static class TextFormat.ParseException extends IOException
Constructor and Description |
---|
ParseException(int line,
int column,
String message)
Create a new instance
|
ParseException(String message)
Create a new instance, with -1 as the line and column numbers.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumn()
Return the column where the parse exception occurred, or -1 when none is provided.
|
int |
getLine()
Return the line where the parse exception occurred, or -1 when none is provided.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ParseException(String message)
public ParseException(int line, int column, String message)
line
- the line number where the parse error occurred, using 1-offset.column
- the column number where the parser error occurred, using 1-offset.public int getLine()
public int getColumn()
Copyright © 2008–2019. All rights reserved.