findByErno static method

Errno findByErno(
  1. int errno
)

Implementation

static Errno findByErno(int errno) {
  if (errno < 1 || errno >= _list.length) {
    throw ErrnoNotFound('Errno with number $errno not found!');
  }
  return _list[errno];
}