Sierra Toolkit  Version of the Day
ExceptionReport.hpp
1 #ifndef STK_UTIL_PARALLEL_ExceptionReport_hpp
2 #define STK_UTIL_PARALLEL_ExceptionReport_hpp
3 
4 #include <stk_util/environment/ReportHandler.hpp>
5 #include <stk_util/environment/RuntimeWarning.hpp>
6 #include <stk_util/environment/RuntimeDoomed.hpp>
7 
8 #include <stk_util/util/Fortran.hpp>
10 
11 
17 #define WarnTrace std::string(std::string(" warning at ") + stk_classic::source_relative_path(STR_TRACE))
18 
24 #define ErrorTrace std::string(std::string(" error thrown from ") + stk_classic::source_relative_path(STR_TRACE))
25 
26 namespace sierra {
27 
28  enum ErrorDieEnum{DIE_ON_WARN=0, DIE_ON_ERROR=1, DIE_ON_MESSAGE=2};
29 
30 typedef stk_classic::MessageCode MessageCode;
31 
34 
38 
41 
45 
46 void set_test_error_messages_file(const std::string &test_error_messages_path);
47 
48 std::ofstream *get_test_error_messages_file();
49 
50  void set_test_error_messages_die_on_first_message(std::vector<ErrorDieEnum> errorTypes);
51 
52 bool get_test_error_messages_die_on_first_warning();
53 bool get_test_error_messages_die_on_first_error();
54 
55 
59 
60 } // namespace sierra
61 
78 extern "C"
79  void SIERRA_FORTRAN(report_error)(int &int_val, const char *message, const int message_length);
80 
81 #endif // STK_UTIL_PARALLEL_ExceptionReport_hpp
Definition: Env.cpp:53
stk_classic::RuntimeWarningAdHoc RuntimeWarning
Deprecated.
Class RuntimeWarningSymmetric reports a symmetric warning message to the report system.
Class MessageCode declares a message identifier and throttle characteristics for a message...
stk_classic::RuntimeDoomedSymmetric RuntimeDoomedP0
Deprecated.
stk_classic::RuntimeWarningSymmetric RuntimeWarningP0
Deprecated.
Class RuntimeDoomedDeferred reports a deferred fatal error message to the report system.
Class RuntimeWarningDeferred reports a deferred warning message to the report system.
stk_classic::RuntimeDoomedAdHoc RuntimeDoomed
Deprecated.
Class RuntimeWarningAdHoc reports an ad hoc warning message to the report system. ...
Class RuntimeDoomedSymmetric reports a fatal error message to the report system.
Class RuntimeDoomedAdHoc reports an ad hoc doomed message to the report system.