Dart DocumentationpetitparserParserError

ParserError class

An exception raised in case of a parse error.

class ParserError implements Error {

 final Failure _failure;

 ParserError(this._failure);

 Failure get failure => _failure;

 String toString() => '${_failure.message} at ${_failure.position}';

}

Implements

Error

Constructors

new ParserError(Failure _failure) #

ParserError(this._failure);

Properties

final Failure failure #

Failure get failure => _failure;

Methods

String toString() #

Returns a string representation of this object.

docs inherited from Object
String toString() => '${_failure.message} at ${_failure.position}';