operator [] method

RuleError operator [](
  1. int index
)
Gets the rule error at the specified index. The index of the rule error to get.

Implementation

RuleError operator [](int index) {
  if (index < 0 || index >= Count) {
    throw RangeError.range(index, 0, Count - 1, "index");
  }
  return ruleErrors[index];
}