check_error abstract method