addRuntimeError method

void addRuntimeError(
  1. AnnotationResultLike error
)

Adds a custom runtime error to the error buffer and recalculates field errors.

Implementation

void addRuntimeError(AnnotationResultLike error) {
  _errorBuffer.putCustom(error.asAnnotationResult());
  _errorBuffer.recalculateFieldErrors();
}