blob: c323ce2556b264cc75a0e7d90ef93034d28e0145 [file] [log] [blame]
// Copyright 2017 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ZIRCON_SYSTEM_HOST_FIDL_INCLUDE_FIDL_ERROR_REPORTER_H_
#define ZIRCON_SYSTEM_HOST_FIDL_INCLUDE_FIDL_ERROR_REPORTER_H_
#include <string>
#include <vector>
namespace fidl {
class ErrorReporter {
public:
void ReportError(std::string error);
void PrintReports();
const std::vector<std::string>& errors() const { return errors_; };
private:
std::vector<std::string> errors_;
};
} // namespace fidl
#endif // ZIRCON_SYSTEM_HOST_FIDL_INCLUDE_FIDL_ERROR_REPORTER_H_