valueFromName static method

ErrorCode valueFromName(
  1. String name
)

Implementation

static ErrorCode valueFromName(String name) {
  for (int i = 0; i < _values.length; ++i) {
    ErrorCode num = _values[i];
    if (num.getName() == name) {
      return num;
    }
  }
  return ERROR_INTERNAL_ERROR;
}