MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / TestError

Class TestError

tests/framework/Exceptions.h:80–110  ·  view source on GitHub ↗

Error class for failures during test execution. */

Source from the content-addressed store, hash-verified

78
79/** Error class for failures during test execution. */
80class TestError : public std::runtime_error
81{
82public:
83 using std::runtime_error::runtime_error;
84
85 /** Construct error with severity.
86 *
87 * @param[in] msg Error message.
88 * @param[in] level Severity level.
89 * @param[in] context Context.
90 */
91 TestError(const std::string &msg, LogLevel level, std::string context = "");
92
93 /** Severity of the error.
94 *
95 * @return Severity.
96 */
97 LogLevel level() const;
98
99 /** Get the error message.
100 *
101 * @return error message.
102 */
103 const char *what() const noexcept override;
104
105private:
106 LogLevel _level{LogLevel::ERRORS};
107 std::string _msg{};
108 std::string _context{};
109 std::string _combined{};
110};
111} // namespace framework
112} // namespace test
113} // namespace arm_compute

Callers 3

Asserts.hFile · 0.85
catchFunction · 0.85
run_testMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected