cheetahStatusToException function
dynamic
cheetahStatusToException(
- String code,
- String? message
)
Implementation
cheetahStatusToException(String code, String? message) {
switch (code) {
case 'CheetahException':
return CheetahException(message);
case 'CheetahMemoryException':
return CheetahMemoryException(message);
case 'CheetahIOException':
return CheetahIOException(message);
case 'CheetahInvalidArgumentException':
return CheetahInvalidArgumentException(message);
case 'CheetahStopIterationException':
return CheetahStopIterationException(message);
case 'CheetahKeyException':
return CheetahKeyException(message);
case 'CheetahInvalidStateException':
return CheetahInvalidStateException(message);
case 'CheetahRuntimeException':
return CheetahRuntimeException(message);
case 'CheetahActivationException':
return CheetahActivationException(message);
case 'CheetahActivationLimitException':
return CheetahActivationLimitException(message);
case 'CheetahActivationThrottledException':
return CheetahActivationThrottledException(message);
case 'CheetahActivationRefusedException':
return CheetahActivationRefusedException(message);
default:
return CheetahException("unexpected code: $code, message: $message");
}
}