reportCrashWithException abstract method
Future<void>
reportCrashWithException(
- String crashName,
- Exception exceptionObject, {
- String? reason,
- Platform? platform,
- StackTrace? stacktrace,
inherited
Report an error which contains an exceptionObject and will therefor be reported as a real
crash. The error includes crashName as well as reason if you include it.
As stacktrace is not a part of exception class, it has to be reported separately.
If crashName is null or empty or the exceptionObject is empty the crash will not be reported.
Example:
import 'package:dynatrace_flutter_plugin/dynatrace_flutter_plugin.dart';
try {
Fail();
} catch (exception, stacktrace) {
await Dynatrace().reportCrashWithException('crashName', exception, stacktrace: stacktrace);
}
For more information, see Dynatrace documentation.
Implementation
Future<void> reportCrashWithException(
String crashName,
Exception exceptionObject, {
String? reason,
Platform? platform,
StackTrace? stacktrace,
});