labs.format.csv.ParseError Extends goog.debug.Error
Error thrown when parsing fails.

Inheritance

Constructor

goog.labs.format.csv.ParseError(textindexopt_message)

Parameters

text : string
The CSV source text being parsed.
index : number
The index, in the string, of the position of the error.
opt_message : string=
A description of the violated parse expectation.
Public Protected Private

Instance Properties

constructor :
No description.
Code »
name :
No description.
Code »
position :
No description.
Code »
constructor :
No description.
Code »
message :
No description.
Code »
name :
No description.
Code »
stack :
No description.
Code »

Static Methods

goog.labs.format.csv.ParseError.findLineInfo_(strindex) ?{line: !goog.string.newlines.Line, lineIndex: number
Calculate the line and column for an index in a string. TODO(nnaze): Consider moving to goog.string.newlines.
Arguments:
str : string
A string.
index : number
An index into the string.
Returns: ?{line: !goog.string.newlines.Line, lineIndex: number  } The line and index of the line.
code »
goog.labs.format.csv.ParseError.getLineDebugString_(strcolumn) string
Get a debug string of a line and a pointing caret beneath it.
Arguments:
str : string
The string.
column : number
The column to point at (1-indexed).
Returns: string  The debug line.
code »

Static Properties

goog.labs.format.csv.ParseError.superClass_ :
No description.
Code »

Package labs.format.csv

Package Reference