taskException function
Google's failure as the one exception every task reports: a MediaPipeException as it is, and anything else as a TaskException that keeps it as its cause.
Implementation
MediaPipeException taskException(Object error) =>
error is MediaPipeException ? error : TaskException('$error', cause: error);