16 for (
auto && it :
_msgs)
25 std::ostringstream oss;
26 oss <<
"The following errors were encountered:\n";
27 for (
const auto & msg_it :
_msgs)
28 if (msg_it->_type ==
ERROR)
29 oss <<
" - " << msg_it->_msg <<
"\n";
39 std::ostringstream oss;
40 oss <<
"The following warnings were encountered:\n";
41 for (
const auto & msg_it :
_msgs)
43 oss <<
" - " << msg_it->_msg <<
"\n";
void mooseError(Args &&... args)
void emitLoggedErrors() const
Calls mooseError if there are any logged errors.
void mooseWarning(Args &&... args)
unsigned int getNumberOfWarnings() const
Return the number of warnings.
unsigned int _n_errors
The number of errors.
void emitLoggedWarnings() const
Calls mooseWarning if there are any logged warnings.
std::vector< Message * > _msgs
The list of logged messages.
unsigned int getNumberOfErrors() const
Return the number of errors.
unsigned int _n_warnings
The number of warnings.