catch exceptions as const

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Id1b5054d3147c39d98309bc11ed7016d6909e2a6
diff --git a/sdbusplus.hpp b/sdbusplus.hpp
index 6787f49..909fbc3 100644
--- a/sdbusplus.hpp
+++ b/sdbusplus.hpp
@@ -306,7 +306,7 @@
             }
             return mapperResp.begin()->first;
         }
-        catch (DBusMethodError& e)
+        catch (const DBusMethodError& e)
         {
             throw DBusServiceError{path, interface};
         }