Public Member Functions | Private Attributes | Static Private Attributes | List of all members
com.google.protobuf.TextFormat.ParseException Class Reference
Inheritance diagram for com.google.protobuf.TextFormat.ParseException:
Inheritance graph
[legend]

Public Member Functions

int getColumn ()
 
int getLine ()
 
 ParseException (final int line, final int column, final String message)
 
 ParseException (final String message)
 

Private Attributes

final int column
 
final int line
 

Static Private Attributes

static final long serialVersionUID = 3196188060225107702L
 

Detailed Description

Thrown when parsing an invalid text format message.

Definition at line 1204 of file TextFormat.java.

Constructor & Destructor Documentation

◆ ParseException() [1/2]

com.google.protobuf.TextFormat.ParseException.ParseException ( final String  message)
inline

Create a new instance, with -1 as the line and column numbers.

Definition at line 1211 of file TextFormat.java.

◆ ParseException() [2/2]

com.google.protobuf.TextFormat.ParseException.ParseException ( final int  line,
final int  column,
final String  message 
)
inline

Create a new instance

Parameters
linethe line number where the parse error occurred, using 1-offset.
columnthe column number where the parser error occurred, using 1-offset.

Definition at line 1221 of file TextFormat.java.

Member Function Documentation

◆ getColumn()

int com.google.protobuf.TextFormat.ParseException.getColumn ( )
inline

Return the column where the parse exception occurred, or -1 when none is provided. The value is specified as 1-offset, so the first line is line 1.

Definition at line 1239 of file TextFormat.java.

◆ getLine()

int com.google.protobuf.TextFormat.ParseException.getLine ( )
inline

Return the line where the parse exception occurred, or -1 when none is provided. The value is specified as 1-offset, so the first line is line 1.

Definition at line 1231 of file TextFormat.java.

Member Data Documentation

◆ column

final int com.google.protobuf.TextFormat.ParseException.column
private

Definition at line 1208 of file TextFormat.java.

◆ line

final int com.google.protobuf.TextFormat.ParseException.line
private

Definition at line 1207 of file TextFormat.java.

◆ serialVersionUID

final long com.google.protobuf.TextFormat.ParseException.serialVersionUID = 3196188060225107702L
staticprivate

Definition at line 1205 of file TextFormat.java.


The documentation for this class was generated from the following file:


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:08