Home
last modified time | relevance | path

Searched hist:b6f729d68d9edcd43fa236eee386b193a95588e7 (Results 1 – 2 of 2) sorted by relevance

/openbmc/sdbusplus/include/sdbusplus/
H A Dexception.hppdiff b6f729d68d9edcd43fa236eee386b193a95588e7 Thu Sep 02 15:02:19 CDT 2021 Patrick Williams <patrick@stwcx.xyz> exception: add errno for all exceptions

sd_bus maintains an errno for all exceptions. There are some
users of the library that are catching an SdBusError because they
want an easy way to change to an errno, but as a result they are
potentially missing exceptions. Add the `get_errno` method into
our base exception object and return the same default that sd_bus
uses: EIO.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I5d7610f78934c94841f99573db6adca2b5ec895c
/openbmc/sdbusplus/src/
H A Dexception.cppdiff b6f729d68d9edcd43fa236eee386b193a95588e7 Thu Sep 02 15:02:19 CDT 2021 Patrick Williams <patrick@stwcx.xyz> exception: add errno for all exceptions

sd_bus maintains an errno for all exceptions. There are some
users of the library that are catching an SdBusError because they
want an easy way to change to an errno, but as a result they are
potentially missing exceptions. Add the `get_errno` method into
our base exception object and return the same default that sd_bus
uses: EIO.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I5d7610f78934c94841f99573db6adca2b5ec895c