[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.