isSyntaxError method

bool isSyntaxError()

True if the exception is a syntax error

Implementation

bool isSyntaxError() {
  if (_message != null) {
    return _message.contains('syntax error');
  }
  return false;
}