voxeraClassifyConnectFailure function

VoxeraConnectFailure voxeraClassifyConnectFailure(
  1. Object error
)

Implementation

VoxeraConnectFailure voxeraClassifyConnectFailure(Object error) {
  if (error is ConnectException &&
      error.reason == ConnectionErrorReason.NotAllowed) {
    return VoxeraConnectFailure.rejected;
  }
  if (error is MediaConnectException) return VoxeraConnectFailure.mediaPath;
  return VoxeraConnectFailure.transient;
}