getExceptionCost function
Get "retry" cost of each YoutubeExplode exception.
Implementation
int getExceptionCost(Exception e) {
if (e is RequestLimitExceededException) {
return 2;
}
if (e is FatalFailureException) {
return 3;
}
return 1;
}