We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35366eb commit 860d9b5Copy full SHA for 860d9b5
2 files changed
Framework/Foundation/include/Framework/RuntimeError.h
@@ -30,6 +30,8 @@ RuntimeErrorRef runtime_error(const char*);
30
RuntimeErrorRef runtime_error_f(const char*, ...);
31
RuntimeError& error_from_ref(RuntimeErrorRef);
32
33
+void throw_error(RuntimeErrorRef);
34
+
35
} // namespace o2::framework
36
37
#endif // O2_FRAMEWORK_RUNTIMEERROR_H_
Framework/Foundation/src/RuntimeError.cxx
@@ -77,4 +77,9 @@ RuntimeErrorRef runtime_error(const char* s)
77
return RuntimeErrorRef{i};
78
}
79
80
+void throw_error(RuntimeErrorRef ref)
81
+{
82
+ throw ref;
83
+}
84
85
0 commit comments