sendException static method

Future<void> sendException({
  1. required Object error,
  2. List<String>? tags,
  3. Map<String, dynamic>? customData,
  4. StackTrace? stackTrace,
})

Sends an exception to Raygun. Convenience method that wraps sendCustom. The class name and the message are obtained from the error object.

Implementation

static Future<void> sendException({
  required Object error,
  List<String>? tags,
  Map<String, dynamic>? customData,
  StackTrace? stackTrace,
}) async {
  return sendCustom(
    className: error.runtimeType.toString(),
    reason: error.toString(),
    tags: tags,
    customData: customData,
    stackTrace: stackTrace,
  );
}