getError method

Exception? getError()

Get the last error but clear it.

Implementation

Exception? getError() {
  final Exception? ex = _ex;
  _ex = null;
  return ex;
}