WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] [XEND][XENAPI] Adding some default Xen AP

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XEND][XENAPI] Adding some default Xen API Errors
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 02 Nov 2006 22:08:24 +0000
Delivery-date: Thu, 02 Nov 2006 21:40:35 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Alastair Tse <atse@xxxxxxxxxxxxx>
# Node ID ddcf2632f448c61f6438928ede95b7f8a8f10bff
# Parent  db33b52f603e316004a2fd4f09ca1b7a8c6ad7b5
[XEND][XENAPI] Adding some default Xen API Errors

Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/XendError.py |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletion(-)

diff -r db33b52f603e -r ddcf2632f448 tools/python/xen/xend/XendError.py
--- a/tools/python/xen/xend/XendError.py        Thu Oct 05 17:29:19 2006 +0100
+++ b/tools/python/xen/xend/XendError.py        Thu Oct 05 17:29:19 2006 +0100
@@ -34,6 +34,17 @@ class XendError(Fault):
 
 class VmError(XendError):
     """Vm construction error."""
-
     pass
 
+
+XEND_ERROR_AUTHENTICATION_FAILED = ('ELUSER', 'Authentication Failed')
+XEND_ERROR_SESSION_INVALID       = ('EPERMDENIED', 'Session Invalid')
+XEND_ERROR_DOMAIN_INVALID        = ('EINVALIDDOMAIN', 'Domain Invalid')
+XEND_ERROR_HOST_INVALID          = ('EINVALIDHOST', 'Host Invalid')
+XEND_ERROR_HOST_RUNNING          = ('EHOSTRUNNING', 'Host is still Running')
+XEND_ERROR_HOST_CPU_INVALID      = ('EHOSTCPUINVALID', 'Host CPU Invalid')
+XEND_ERROR_UNSUPPORTED           = ('EUNSUPPORTED', 'Method Unsupported')
+XEND_ERROR_VM_INVALID            = ('EVMINVALID', 'VM Invalid')
+XEND_ERROR_VBD_INVALID           = ('EVBDINVALID', 'VBD Invalid')
+XEND_ERROR_VIF_INVALID           = ('EVIFINVALID', 'VIF Invalid')
+XEND_ERROR_TODO                  = ('ETODO', 'Lazy Programmer Error')

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XEND][XENAPI] Adding some default Xen API Errors, Xen patchbot-unstable <=