summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLei YU <mine260309@gmail.com>2018-06-07 16:17:01 +0800
committerLei YU <mine260309@gmail.com>2018-06-07 16:17:01 +0800
commit49f855f07d478832875c0dda4ca35591c0fec91d (patch)
treed83b773f5b5d7c14727523839c20b243da46f5f4
parent804289d92e2d5d28c600d932071e39abf1077d03 (diff)
downloadphosphor-dbus-interfaces-49f855f07d478832875c0dda4ca35591c0fec91d.tar.gz
phosphor-dbus-interfaces-49f855f07d478832875c0dda4ca35591c0fec91d.zip
EpochTime: Add errors for properties
sdbusplus now supports errors on properties, so define the errors for setting the Elapsed property. The implementation depends on this to throw exceptions when error occurs. Change-Id: I2b22da8b038389b00288036aaa5601630583aaaa Signed-off-by: Lei YU <mine260309@gmail.com>
-rw-r--r--xyz/openbmc_project/Time/EpochTime.interface.yaml8
1 files changed, 8 insertions, 0 deletions
diff --git a/xyz/openbmc_project/Time/EpochTime.interface.yaml b/xyz/openbmc_project/Time/EpochTime.interface.yaml
index 243802a..7b49fc0 100644
--- a/xyz/openbmc_project/Time/EpochTime.interface.yaml
+++ b/xyz/openbmc_project/Time/EpochTime.interface.yaml
@@ -7,4 +7,12 @@ properties:
Time elpased since the
Epoch(1 Jan 1970 00:00:00 UTC), in microseconds.
+ On setting this property, errors may be thrown.
+ InternalFailure means BMC fails to set the time.
+ InsufficientPermission means it is not allowed to set time depend
+ on the time settings.
+ errors:
+ - xyz.openbmc_project.Common.Error.InternalFailure
+ - xyz.openbmc_project.Common.Error.InsufficientPermission
+
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
OpenPOWER on IntegriCloud