Add possible errors can be encountered while offloading
Return error if the URI cannot be opened, cannot be written
to it or it is not in a valid format.
Signed-off-by: Dhruvaraj Subhashchandran <dhruvaraj@in.ibm.com>
Change-Id: I2841fcc11eaea660603ab6a39ea964f39a48d0e5
diff --git a/xyz/openbmc_project/Dump/Entry.interface.yaml b/xyz/openbmc_project/Dump/Entry.interface.yaml
index 1c86aa6..ad6e84c 100644
--- a/xyz/openbmc_project/Dump/Entry.interface.yaml
+++ b/xyz/openbmc_project/Dump/Entry.interface.yaml
@@ -22,7 +22,13 @@
- name: OffloadUri
type: string
description: >
- The location to offload dump file.
+ The location to offload dump file, error InvalidArgument will be
+ returned if the URI is not well formated.
+ errors:
+ - xyz.openbmc_project.Common.File.Error.Open
+ - xyz.openbmc_project.Common.File.Error.Write
+ - xyz.openbmc_project.Common.Error.InvalidArgument
+
properties:
- name: Size
type: uint64