exception method
Future<void>
exception(
- String? message, {
- bool takeScreenshot = true,
- dynamic coordinates,
- dynamic data,
- dynamic exception,
})
Implementation
Future<void> exception(String? message, {bool takeScreenshot = true, dynamic coordinates, dynamic data, dynamic exception}) async {
dynamic response = await logEvent('EXCEPTION', message, coordinates, data);
// ignore: avoid_print
print('====================Changing status for current task: ' 'EXCEPTION' ' ====================');
setStatus('EXCEPTION');
if (takeScreenshot == true) {
await _attachScreenshot(this, response);
}
}