onUnControlException property
RepositoryError Function(UnControlDataSourceException exception, StackTrace stackTrace)
get
onUnControlException
override
Default handler for uncontrolled exceptions (e.g., 500 Internal Server Error). Logs the error and returns UnControlRepositoryError.
Implementation
@override
RepositoryError Function(
UnControlDataSourceException exception,
StackTrace stackTrace,
) get onUnControlException => (exception, stackTrace) {
observer.onUnControlException(
exception,
stackTrace,
runtimeType.toString(),
);
return const UnControlRepositoryError();
};