voxeraClassifyConnectFailure function
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;
}