code: public void addError(SyntaxException error, SourceUnit source) throws CompilationFailedException {
          addError(Message.create(error, source), error.isFatal());
      }
docs: Convenience wrapper for addError().