Handle D-Bus exceptions

Remove the usage of is_method_error()[1]
Also, add try-catch to handle D-Bus exceptions around mapper call.

[1]https://gerrit.openbmc-project.xyz/c/openbmc/sdbusplus/+/14010

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I042e86676950aa25d646ff597ac55500abe44ddf
1 file changed