error method

  1. @override
Exception error(
  1. String message, {
  2. int from = 0,
  3. int to = 0,
})
override

generate a error at the position of the parsable

Implementation

@override
Exception error(String message, {int from = 0, int to = 0}) {
  return Exception(
      message + ' at ' + toString(from: from, to: to, err: true));
}