corrected interface method name errors() -> getErrors()