createAndLogError static method

RxException createAndLogError(
  1. String message, {
  2. Object? originalError,
  3. StackTrace? stackTrace,
  4. String? context,
})

Create an RxException and log it

Implementation

static RxException createAndLogError(
  String message, {
  Object? originalError,
  StackTrace? stackTrace,
  String? context,
}) {
  final error = RxException.withTimestamp(
    message,
    originalError: originalError,
    stackTrace: stackTrace,
  );

  logError(error, context: context);
  return error;
}