summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2016-11-11 13:47:29 -0600
committerPatrick Williams <patrick@stwcx.xyz>2016-11-17 15:35:54 -0600
commitf4a6f41f9a7fd1e8d21206f813d87ba784144503 (patch)
tree41092b479d6093837bac4b223bdee3a88b3d7ac6
parent7aa8a1e2e8fb9ed54a24bf9c61ddfbd78d70c629 (diff)
downloadsdbusplus-f4a6f41f9a7fd1e8d21206f813d87ba784144503.tar.gz
sdbusplus-f4a6f41f9a7fd1e8d21206f813d87ba784144503.zip
exception: Create exception class
Change-Id: I576ac6fdbca5ca7d186040c36abac1f0a5dc73cb Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
-rw-r--r--Makefile.am1
-rw-r--r--sdbusplus/exception.hpp19
2 files changed, 20 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index c60ff10..b89769a 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,6 +4,7 @@ nobase_include_HEADERS = \
mapbox/recursive_wrapper.hpp \
mapbox/variant.hpp \
sdbusplus/bus.hpp \
+ sdbusplus/exception.hpp \
sdbusplus/message.hpp \
sdbusplus/message/append.hpp \
sdbusplus/message/read.hpp \
diff --git a/sdbusplus/exception.hpp b/sdbusplus/exception.hpp
new file mode 100644
index 0000000..871e85f
--- /dev/null
+++ b/sdbusplus/exception.hpp
@@ -0,0 +1,19 @@
+#pragma once
+
+#include <exception>
+
+namespace sdbusplus
+{
+
+namespace exception
+{
+
+struct exception : public std::exception
+{
+};
+
+} // namespace exception
+
+using exception_t = exception::exception;
+
+} // namespace sdbusplus
OpenPOWER on IntegriCloud