error property

ArcGISException? error

An error that describes a problem encountered while starting or running the LocationDataSource.

This property is used to notify the user about errors that occur in LocationDataSource. Such errors are critical for LocationDataSource and will cause it stop. If LocationDataSource cannot be started, or it stopped after a successful start, this property will store information related to what caused LocationDataSource to stop.

Implementation

ArcGISException? get error {
  final errorHandle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_LocationDataSource_getError(_handle, errorHandler);
  });
  return errorHandle.toArcGISException();
}