20 #ifndef ERROR_MESSAGE_H 21 #define ERROR_MESSAGE_H 23 #ifndef SHEAF_DLL_SPEC_H 24 #include "SheafSystem/sheaf_dll_spec.h" 28 #include "SheafSystem/std_string.h" 89 const std::string& xfile,
91 const std::string& xtext);
96 std::string source()
const;
101 std::string text()
const;
111 void post(
bool xforce_exit =
false)
const;
116 static const std::string& level_name(
level_type xlevel);
146 #define SOURCE_CODE_LOCATION \ 147 error_message(error_message::UNSPECIFIED, __FILE__, __LINE__, "") 149 #define post_information_message(x) \ 150 {error_message msg(error_message::INFORMATION, __FILE__, __LINE__, (x)); msg.post(0);} 152 #define post_warning_message(x) \ 153 {error_message msg(error_message::WARNING, __FILE__, __LINE__, (x)); msg.post(0);} 155 #define post_severe_error_message(x) \ 156 {error_message msg(error_message::SEVERE_ERROR, __FILE__, __LINE__, (x)); msg.post(0);} 158 #define post_fatal_error_message(x) \ 159 {error_message msg(error_message::FATAL_ERROR, __FILE__, __LINE__, (x)); msg.post(1);} 163 #endif // ifndef ERROR_MESSAGE_H level_type
The set of predefined error levels.
SHEAF_DLL_SPEC std::ostream & operator<<(std::ostream &os, const dof_descriptor_array &p)
Insert dof_descriptor_array& p into ostream& os.
Namespace for the sheaves component of the sheaf system.
A message to report error conditions.