HumanDetectionException.fromPlatformException constructor

HumanDetectionException.fromPlatformException(
  1. dynamic e
)

Creates a HumanDetectionException from a platform exception.

Implementation

factory HumanDetectionException.fromPlatformException(dynamic e) {
  if (e is HumanDetectionException) return e;
  return HumanDetectionException(e.toString(), details: e);
}