triggerCaughtException static method
void
triggerCaughtException()
Triggers a caught exception.
Implementation
static void triggerCaughtException() {
try {
throw Exception('Embrace sample: caught exception');
} catch (exc, stack) {
if (kDebugMode) {
print(
'Exception message: $exc, '
'Stacktrace:\n$stack',
);
}
}
}