HardwareIsolation: Added the error code

Added the error code which is specific to hardware isolation
interfaces.

Signed-off-by: Ramesh Iyyar <rameshi1@in.ibm.com>
Change-Id: I787bc1a422d197f016d0102f5ad659ab679f2b6e
diff --git a/gen/xyz/openbmc_project/HardwareIsolation/Errors/meson.build b/gen/xyz/openbmc_project/HardwareIsolation/Errors/meson.build
new file mode 100644
index 0000000..d5b95cd
--- /dev/null
+++ b/gen/xyz/openbmc_project/HardwareIsolation/Errors/meson.build
@@ -0,0 +1,14 @@
+# Generated file; do not modify.
+generated_sources += custom_target(
+    'xyz/openbmc_project/HardwareIsolation/Errors__cpp'.underscorify(),
+    input: [ '../../../../../yaml/xyz/openbmc_project/HardwareIsolation/Errors.errors.yaml',  ],
+    output: [ 'error.cpp', 'error.hpp',  ],
+    command: [
+        sdbuspp_gen_meson_prog, '--command', 'cpp',
+        '--output', meson.current_build_dir(),
+        '--tool', sdbusplusplus_prog,
+        '--directory', meson.current_source_dir() / '../../../../../yaml',
+        'xyz/openbmc_project/HardwareIsolation/Errors',
+    ],
+)
+
diff --git a/gen/xyz/openbmc_project/HardwareIsolation/meson.build b/gen/xyz/openbmc_project/HardwareIsolation/meson.build
index 5c4e7a7..442741b 100644
--- a/gen/xyz/openbmc_project/HardwareIsolation/meson.build
+++ b/gen/xyz/openbmc_project/HardwareIsolation/meson.build
@@ -1,4 +1,17 @@
 # Generated file; do not modify.
+generated_sources += custom_target(
+    'xyz/openbmc_project/HardwareIsolation__cpp'.underscorify(),
+    input: [ '../../../../yaml/xyz/openbmc_project/HardwareIsolation.errors.yaml',  ],
+    output: [ 'error.cpp', 'error.hpp',  ],
+    command: [
+        sdbuspp_gen_meson_prog, '--command', 'cpp',
+        '--output', meson.current_build_dir(),
+        '--tool', sdbusplusplus_prog,
+        '--directory', meson.current_source_dir() / '../../../../yaml',
+        'xyz/openbmc_project/HardwareIsolation',
+    ],
+)
+
 subdir('Entry')
 generated_others += custom_target(
     'xyz/openbmc_project/HardwareIsolation/Entry__markdown'.underscorify(),
diff --git a/gen/xyz/openbmc_project/meson.build b/gen/xyz/openbmc_project/meson.build
index 19d6746..9921fec 100644
--- a/gen/xyz/openbmc_project/meson.build
+++ b/gen/xyz/openbmc_project/meson.build
@@ -49,6 +49,19 @@
 subdir('Control')
 subdir('Dump')
 subdir('HardwareIsolation')
+generated_others += custom_target(
+    'xyz/openbmc_project/HardwareIsolation__markdown'.underscorify(),
+    input: [ '../../../yaml/xyz/openbmc_project/HardwareIsolation.errors.yaml',  ],
+    output: [ 'HardwareIsolation.md' ],
+    command: [
+        sdbuspp_gen_meson_prog, '--command', 'markdown',
+        '--output', meson.current_build_dir(),
+        '--tool', sdbusplusplus_prog,
+        '--directory', meson.current_source_dir() / '../../../yaml',
+        'xyz/openbmc_project/HardwareIsolation',
+    ],
+)
+
 subdir('Inventory')
 generated_others += custom_target(
     'xyz/openbmc_project/Inventory__markdown'.underscorify(),
diff --git a/yaml/xyz/openbmc_project/HardwareIsolation.errors.yaml b/yaml/xyz/openbmc_project/HardwareIsolation.errors.yaml
new file mode 100644
index 0000000..99e83d9
--- /dev/null
+++ b/yaml/xyz/openbmc_project/HardwareIsolation.errors.yaml
@@ -0,0 +1,2 @@
+- name: IsolatedAlready
+  description: The requested hardware is already isolated.