fromValue static method

lsl_error_code_t fromValue(
  1. int value
)

Implementation

static lsl_error_code_t fromValue(int value) => switch (value) {
  0 => lsl_no_error,
  -1 => lsl_timeout_error,
  -2 => lsl_lost_error,
  -3 => lsl_argument_error,
  -4 => lsl_internal_error,
  2130706432 => _lsl_error_code_maxval,
  _ => throw ArgumentError('Unknown value for lsl_error_code_t: $value'),
};