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

Function catch

tests/framework/Framework.cpp:483–500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

481 }
482#ifdef ARM_COMPUTE_CL
483 catch (const ::cl::Error &error)
484 {
485 profiler.test_stop();
486 if (_log_level >= LogLevel::ERRORS)
487 {
488 std::stringstream stream;
489 stream << "Error code: " << error.err();
490 TestError test_error(error.what(), LogLevel::ERRORS, stream.str());
491 func_on_all_printers([&](Printer *p) { p->print_error(test_error, is_expected_failure); });
492 }
493
494 result.status = TestResult::Status::FAILED;
495
496 if (_throw_errors)
497 {
498 throw;
499 }
500 }
501#endif /* ARM_COMPUTE_CL */
502 catch (const std::exception &error)
503 {

Callers

nothing calls this directly

Calls 6

TestErrorClass · 0.85
errMethod · 0.80
strMethod · 0.80
test_stopMethod · 0.45
whatMethod · 0.45
print_errorMethod · 0.45

Tested by

no test coverage detected