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 mooseWarning(Args &&... args)
void mooseError(Args &&... args)
unsigned int _n_warnings
The number of warnings.
void emitLoggedErrors() const
Calls mooseError if there are any logged errors.
std::vector< Message * > _msgs
The list of logged messages.
unsigned int _n_errors
The number of errors.
unsigned int getNumberOfWarnings() const
Return the number of warnings.
void emitLoggedWarnings() const
Calls mooseWarning if there are any logged warnings.
unsigned int getNumberOfErrors() const
Return the number of errors.