Home
last modified time | relevance | path

Searched refs:ToolException (Results 1 – 10 of 10) sorted by relevance

/openbmc/phosphor-ipmi-flash/tools/
H A Dtool_errors.hpp9 class ToolException : public std::exception class
12 explicit ToolException(const std::string& message) : message(message) {}; in ToolException() function in host_tool::ToolException
23 class NotFoundException : public ToolException
27 ToolException(std::string("Couldn't find " + device)) {}; in NotFoundException()
H A Dhelper.cpp74 throw ToolException("Stat check timed out"); in pollStat()
83 throw ToolException( in pollStat()
97 throw ToolException("Invalid stat metadata"); in pollStatus()
104 throw ToolException("BMC reported failure"); in pollStatus()
111 throw ToolException("Unrecognized action status"); in pollStatus()
143 throw ToolException("BMC blob failed to become ready"); in pollReadReady()
H A Dupdater.cpp50 throw ToolException("Goal firmware not supported"); in updaterMain()
91 throw ToolException("Verification failed"); in updaterMain()
108 throw ToolException("Update failed"); in updaterMain()
H A Dhandler.cpp87 throw ToolException( in retryIfFailed()
90 catch (const ToolException& t) in retryIfFailed()
118 throw ToolException("Failed to send contents of " + path); in retrySendFile()
H A Dp2a.cpp79 throw ToolException("Didn't receive expected size of metadata for " in sendContents()
H A Dpci.cpp110 throw ToolException( in write()
H A Dmain.cpp280 catch (const host_tool::ToolException& e) in main()
/openbmc/phosphor-ipmi-flash/tools/test/
H A Dtools_updater_unittest.cpp97 ToolException); in TEST_F()
123 ToolException); in TEST_F()
187 ToolException); in TEST_F()
195 .WillRepeatedly(Throw(ToolException("asdf"))); in TEST_F()
197 ToolException); in TEST_F()
206 .WillOnce(Throw(ToolException("asdf"))) in TEST_F()
207 .WillOnce(Throw(ToolException("asdf"))) in TEST_F()
229 ToolException); in TEST_F()
265 ToolException); in TEST_F()
281 ToolException); in TEST_F()
[all …]
H A Dtools_helper_unittest.cpp47 EXPECT_THROW(pollStatus(session, &blobMock), ToolException); in TEST_F()
72 EXPECT_THROW(pollReadReady(session, &blobMock), ToolException); in TEST_F()
106 EXPECT_THROW(pollReadReady(session, &blobMock), ToolException); in TEST_F()
H A Dtools_pci_unittest.cpp350 EXPECT_THROW(bridge->write(std::span<std::uint8_t>(data)), ToolException); in TEST()
591 EXPECT_THROW(bridge->write(std::span<std::uint8_t>(data)), ToolException); in TEST()