error property

Error error

Gets an exception indicating the cause of the parse failure.

This property is typically used to wrap parse failures in higher level exceptions.

Implementation

Error get error {
  if (_errorProvider == null) {
    // InvalidOperationException
    throw StateError('Parse operation succeeded, so no exception is available');
  }
  return _errorProvider!();
}