handleImpl method

Future handleImpl()

Main handling.

Implementation

Future<dynamic> handleImpl() async {
  // devPrint('$this');
  try {
    if (_debug) {
      print('handle $this');
    }
    dynamic result = await rawHandle();

    if (_debug) {
      print('result: $result');
    }

    // devPrint('result: $result');
    return result;
  } catch (e, st) {
    // devPrint('st $st');
    if (_debug) {
      print('error: $e');
      print('st $st');
    }

    var ffiException = wrapAnyException(e);
    throw ffiException;
  }
}