transporthandler: Generic set exception handling

This makes it easier to handle errors across multiple command types as
they all have common return codes for specific types of failures.

Change-Id: I033a171b5fca78a62b52424db970ecfdf7a15e17
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/meson.build b/meson.build
index 67c5caf..b300247 100644
--- a/meson.build
+++ b/meson.build
@@ -117,6 +117,7 @@
 mapper = dependency('libmapper')
 boost_coroutine = cpp.find_library('boost_coroutine', required: true)
 sdbusplus_dep = dependency('sdbusplus')
+stdplus_dep = dependency('stdplus')
 
 if cpp.has_header_symbol(
         'nlohmann/json.hpp',
@@ -200,6 +201,7 @@
 # ipmid
 ipmid_pre = [
   sdbusplus_dep,
+  stdplus_dep,
   phosphor_logging_dep,
   phosphor_dbus_interfaces_dep,
   boost_coroutine,