throwTestException method

Future<void> throwTestException()

Throw a test exception (non-fatal)

Implementation

Future<void> throwTestException() async {
  try {
    throw Exception('Dev Tools Test Exception - ${DateTime.now()}');
  } catch (e, stack) {
    await recordError(
      exception: e,
      stackTrace: stack,
      reason: 'Test exception from Dev Tools',
    );
  }
}