error method

Exception error (String message, { int from: 0, int to: 0 })

generate a error at the position of the parsable

Implementation

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