valueFromID static method

ErrorCode valueFromID(
  1. int id
)

Implementation

static ErrorCode valueFromID(int id) {
  for (int i = 0; i < _values.length; ++i) {
    ErrorCode num = _values[i];
    if (num.getId() == id) {
      return num;
    }
  }
  return ERROR_INTERNAL_ERROR;
}