Exemple #1
0
 code_generation_error(
         std::string const& generator_name,
         String const& msg,
         helper::colorizer const c = helper::colorizer{}
     ) noexcept
     : std::runtime_error(
             c.red("Error ")
             + c.bold(msg) + "\n"
             "1 error generated in " + generator_name
         )
 {}
Exemple #2
0
 not_implemented_error(char const* const file,
                       char const* const func,
                       std::size_t const line,
                       String const& what_feature,
                       helper::colorizer const c = helper::colorizer{}) noexcept
     : std::runtime_error(
             (
                 boost::format(
                         c.red("Error") + '\n' +
                         c.bold("  %1% is not implemented yet.\n") +
                         "  Note: You can contribute to Dachs with implementing this feature. "
                         "Clone https://github.com/rhysd/Dachs and see %2%, %3%(), line:%4%"
                     ) % what_feature
                       % file
                       % func
                       % line
             ).str()
         )
 {}