// file : xsd/cxx/tree/error-handler.txx // copyright : Copyright (c) 2005-2017 Code Synthesis Tools CC // license : GNU GPL v2 + exceptions; see accompanying LICENSE file namespace xsd { namespace cxx { namespace tree { template bool error_handler:: handle (const std::basic_string& id, unsigned long line, unsigned long column, severity s, const std::basic_string& message) { diagnostics_.push_back ( error (s == severity::warning ? tree::severity::warning : tree::severity::error, id, line, column, message)); if (!failed_ && s != severity::warning) failed_ = true; return true; } } } }