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: If9ecc60e370b7ab62e58dc1c3bfdd4051ee9c435
diff --git a/functions.cpp b/functions.cpp
index 88c7841..0404d00 100644
--- a/functions.cpp
+++ b/functions.cpp
@@ -60,7 +60,7 @@
return std::string{};
}
}
- catch (const sdbusplus::exception::SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
return std::string{};
}
@@ -84,7 +84,7 @@
auto reply = bus.call(method);
reply.read(objects);
}
- catch (const sdbusplus::exception::SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
return ManagedObjectType{};
}
@@ -407,7 +407,7 @@
std::variant<PendingAttributesType>(pendingAttributes));
bus.call(method);
}
- catch (const sdbusplus::exception::SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
log<level::ERR>("Error setting the bios attribute",
entry("ERROR=%s", e.what()),
@@ -649,7 +649,7 @@
auto reply = bus.call(getManagedObjects);
reply.read(objects);
}
- catch (const sdbusplus::exception::SdBusError& e)
+ catch (const sdbusplus::exception::exception& e)
{
// Error querying the EntityManager interface. Return the match to have
// the callback run if/when the interface appears in D-Bus.