diff options
author | Lei YU <mine260309@gmail.com> | 2018-07-13 15:14:56 +0800 |
---|---|---|
committer | Lei YU <mine260309@gmail.com> | 2018-09-12 10:45:04 +0800 |
commit | 86c83f384b54bcbb716508103ae2ff3f3b4589aa (patch) | |
tree | b776b0faab0f55dd25b562d1fc63a88e71624972 /xyz | |
parent | bd024395f6e34f4bc5eff4941991abc572e9707e (diff) | |
download | phosphor-time-manager-86c83f384b54bcbb716508103ae2ff3f3b4589aa.tar.gz phosphor-time-manager-86c83f384b54bcbb716508103ae2ff3f3b4589aa.zip |
Throw runtime_error instead of MethodEror
As suggested, when error occurs in getService/getProperty, it means
runtime error, so the code is better to throw std::runtime_error instead
of a sdbusplus exception.
Tested: Build the code correctly.
Change-Id: Iddca72ac1fdd07ed6b731b6509eebbfa9d2579d3
Signed-off-by: Lei YU <mine260309@gmail.com>
Diffstat (limited to 'xyz')
-rw-r--r-- | xyz/openbmc_project/Time/Internal.errors.yaml | 3 | ||||
-rw-r--r-- | xyz/openbmc_project/Time/Internal.metadata.yaml | 10 |
2 files changed, 0 insertions, 13 deletions
diff --git a/xyz/openbmc_project/Time/Internal.errors.yaml b/xyz/openbmc_project/Time/Internal.errors.yaml deleted file mode 100644 index a2502ab..0000000 --- a/xyz/openbmc_project/Time/Internal.errors.yaml +++ /dev/null @@ -1,3 +0,0 @@ -#xyz.openbmc_project.Time.Internal.MethodError -- name: MethodError - description: Failed to invoke Dbus method diff --git a/xyz/openbmc_project/Time/Internal.metadata.yaml b/xyz/openbmc_project/Time/Internal.metadata.yaml deleted file mode 100644 index 0f16c11..0000000 --- a/xyz/openbmc_project/Time/Internal.metadata.yaml +++ /dev/null @@ -1,10 +0,0 @@ -- name: MethodError - meta: - - str: "METHOD_NAME=%s" - type: string - - str: "PATH=%s" - type: string - - str: "INTERFACE=%s" - type: string - - str: "MISC=%s" - type: string |