Maor Lipchuk has uploaded a new change for review.

Change subject: core: Add getMessage to VdcBLLException
......................................................................

core: Add getMessage to VdcBLLException

Adding getMessage method to VdcBLLException, to provide better
information to the user.

Change-Id: I48de4e4743bee113ea17295ca680c7e64b41f00c
Signed-off-by: Maor Lipchuk <mlipc...@redhat.com>
---
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/errors/VdcBLLException.java
1 file changed, 8 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/99/13099/1

diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/errors/VdcBLLException.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/errors/VdcBLLException.java
index 48ae364..7647fbe 100644
--- 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/errors/VdcBLLException.java
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/errors/VdcBLLException.java
@@ -67,4 +67,12 @@
 
     public VdcBLLException() {
     }
+
+    @Override
+    public String getMessage() {
+        return String.format(super.getMessage() + " Failed with VDSM error {0} 
and code {1}.",
+                privateVdsError.getCode(),
+                privateVdsError.getCode().getValue());
+    }
+
 }


--
To view, visit http://gerrit.ovirt.org/13099
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I48de4e4743bee113ea17295ca680c7e64b41f00c
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Maor Lipchuk <mlipc...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to