exception: add errno

sdbusplus is going to start requiring the 'get_errno' function
on all exceptions.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: If98b71c227b109341189409ea8de42fa333e99c0
diff --git a/phosphor-regulators/test/test_sdbus_error.hpp b/phosphor-regulators/test/test_sdbus_error.hpp
index a4ac9ee..09cc5f7 100644
--- a/phosphor-regulators/test/test_sdbus_error.hpp
+++ b/phosphor-regulators/test/test_sdbus_error.hpp
@@ -47,6 +47,11 @@
         return "";
     }
 
+    int get_errno() const noexcept override
+    {
+        return EIO;
+    }
+
   private:
     const std::string error{};
 };