12 #include <stk_util/environment/ReportHandler.hpp> 13 #include <stk_util/environment/RuntimeDoomed.hpp> 33 unsigned int max_messages)
67 const char * aggregate,
76 : m_messageCode(message_code)
85 catch (std::exception &)
92 : m_messageCode(message_code)
101 catch (std::exception &)
108 : m_messageCode(message_code)
117 catch (std::exception &)
void report_deferred_doomed(const char *message, const char *aggregate, const MessageCode &message_code)
Member function report_deferred_doomed ...
void add_deferred_message(int message_type, MessageId message_id, size_t throttle_cutoff, int throttle_group, const char *header, const char *aggegrate)
Function add_deferred_message adds a message to the deferred message queue.
~RuntimeDoomedDeferred()
Destroys a RuntimeDoomed instance.
void set_max_doomed_count(unsigned int max_messages)
Function set_max_messages sets the maximum number of doomed before no more doomed will be displayed...
RuntimeDoomedDeferred(const MessageCode &message_code)
Creates a new RuntimeDoomedDeferred instance, setting the message code.
std::ostringstream aggregate
Stream to receive message aggregate content.
RuntimeDoomedSymmetric(const MessageCode &message_code=MessageCode::s_defaultMessageCode)
Creates a new RuntimeDoomedSymmetric instance, setting the message code.
std::ostringstream message
Stream to receive message header content.
void report_doomed(const char *message, const MessageCode &message_code)
Function report_symmetric_doomed sends a doomed message to the reporter.
void reset_message_count(unsigned message_type)
Member function reset_message_count ...
Class MessageCode declares a message identifier and throttle characteristics for a message...
Throttle m_throttle
Throttle characteristics.
~RuntimeDoomedAdHoc()
Destroys a RuntimeDoomedAdHoc instance.
void report_symmetric_doomed(const char *message, const MessageCode &message_code)
Function report_symmetric_doomed sends a doomed message to the reporter.
unsigned get_max_message_count(unsigned message_type)
Member function get_max_message_count ...
void report_message(const char *message, unsigned message_type, const MessageCode &message_code)
Member function report_message ...
unsigned get_message_count(unsigned message_type)
Member function get_message_count ...
size_t m_cutoff
Maximum number to display.
~RuntimeDoomedSymmetric()
Destroys a RuntimeDoomedSymmetric instance.
std::ostringstream message
Stream to receive message content.
unsigned int get_doomed_count()
Function get_doomed_count returns the accumulated doomed count.
Message is a fatal error.
void set_max_message_count(unsigned message_type, unsigned max_count)
Member function set_max_message_count ...
std::ostringstream message
Stream to receive message content.
unsigned get_max_doomed_count()
Function set_max_messages sets the maximum number of doomed and doomed messages displayed before the ...
RuntimeDoomedAdHoc(const MessageCode &message_code=MessageCode::s_defaultMessageCode)
Creates a new RuntimeDoomedAdHoc instance, setting the message code.
MessageId m_id
Message identifier.
int m_group
Throttle group of message.
void reset_doomed_count()
Function reset_doomed_count sets the accumulated doomed count to zero.