getFailStackTrace method

Future<String?> getFailStackTrace()
override

Returns the stack trace of the exception received while executing this session.

The stack trace is only set for sessions that end with FAILED state. For sessions that has COMPLETED state this method returns null.

Implementation

Future<String?> getFailStackTrace() async {
  try {
    return _platform.abstractSessionGetFailStackTrace(this.getSessionId());
  } on PlatformException catch (e, stack) {
    print("Plugin getFailStackTrace error: ${e.message}");
    return Future.error("getFailStackTrace failed.", stack);
  }
}