exception: switch to public sdbus exception
SdBusError was intended to be a private error type inside sdbusplus.
Switch all catch locations to use the general sdbusplus::exception type.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I3b5d83511afdf17b2911502279087e57a59b9945
diff --git a/storagehandler.cpp b/storagehandler.cpp
index 3f09940..eecc18b 100644
--- a/storagehandler.cpp
+++ b/storagehandler.cpp
@@ -109,7 +109,7 @@
{
ipmi::sel::readLoggingObjectPaths(cache::paths);
}
- catch (const sdbusplus::exception::SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
// No action if reading log objects have failed for this command.
// readLoggingObjectPaths will throw exception if there are no log
@@ -299,7 +299,7 @@
{
ipmi::sel::readLoggingObjectPaths(cache::paths);
}
- catch (const sdbusplus::exception::SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
// readLoggingObjectPaths will throw exception if there are no error
// log entries.
@@ -434,7 +434,7 @@
static_cast<uint8_t>(ipmi::sel::eraseComplete));
}
}
- catch (const sdbusplus::exception::SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
return ipmi::responseSuccess(
static_cast<uint8_t>(ipmi::sel::eraseComplete));