48 std::runtime_error(
"Object build error"),
errors_(errors)
56 virtual const char*
what()
const throw()
58 std::ostringstream msg(
"");
60 msg << runtime_error::what() <<
": "
61 <<
"See errors for details.";
63 return msg.str().c_str();
83 std::cout << std::setw(msgw + 8) << std::left <<
"\033[1m" + notice +
"\033[0m";
96 std::cout << std::setw(notw) << std::right <<
"\033[1;31mError(s)! See below.\033[0m\n";
98 std::cout <<
" * " << msg <<
"\n";
110 std::cout << std::setw(notw) << std::right <<
"\033[32mOK!\033[0m\n";
114 for(
auto& msg : msgs)
115 std::cout << prefix <<
" * " << msg <<
"\n";
std::vector< std::string > errors_
Error message.
BuildException(std::vector< std::string > errors)
Constructor.
Exception to be thrown when building the Driver fails.
std::vector< std::string > GetErrors()
Get specific error message.
int DumpErrorsToConsole(const std::vector< std::string > &msgs, int notw)
Print a list of errors.
void DumpNoticesToConsole(const std::vector< std::string > &msgs, std::string prefix, int notw)
Print a list of notices.
void PrintBoldNotice(const std::string ¬ice, int msgw)
Print out Notice in bold text.
virtual const char * what() const
Get generic error message.