ia64/xen-unstable

changeset 12081:ddcf2632f448

[XEND][XENAPI] Adding some default Xen API Errors

Signed-off-by: Alastair Tse <atse@xensource.com>
author Alastair Tse <atse@xensource.com>
date Thu Oct 05 17:29:19 2006 +0100 (2006-10-05)
parents db33b52f603e
children 59f3891b94b8
files tools/python/xen/xend/XendError.py
line diff
     1.1 --- a/tools/python/xen/xend/XendError.py	Thu Oct 05 17:29:19 2006 +0100
     1.2 +++ b/tools/python/xen/xend/XendError.py	Thu Oct 05 17:29:19 2006 +0100
     1.3 @@ -34,6 +34,17 @@ class XendError(Fault):
     1.4  
     1.5  class VmError(XendError):
     1.6      """Vm construction error."""
     1.7 -
     1.8      pass
     1.9  
    1.10 +
    1.11 +XEND_ERROR_AUTHENTICATION_FAILED = ('ELUSER', 'Authentication Failed')
    1.12 +XEND_ERROR_SESSION_INVALID       = ('EPERMDENIED', 'Session Invalid')
    1.13 +XEND_ERROR_DOMAIN_INVALID        = ('EINVALIDDOMAIN', 'Domain Invalid')
    1.14 +XEND_ERROR_HOST_INVALID          = ('EINVALIDHOST', 'Host Invalid')
    1.15 +XEND_ERROR_HOST_RUNNING          = ('EHOSTRUNNING', 'Host is still Running')
    1.16 +XEND_ERROR_HOST_CPU_INVALID      = ('EHOSTCPUINVALID', 'Host CPU Invalid')
    1.17 +XEND_ERROR_UNSUPPORTED           = ('EUNSUPPORTED', 'Method Unsupported')
    1.18 +XEND_ERROR_VM_INVALID            = ('EVMINVALID', 'VM Invalid')
    1.19 +XEND_ERROR_VBD_INVALID           = ('EVBDINVALID', 'VBD Invalid')
    1.20 +XEND_ERROR_VIF_INVALID           = ('EVIFINVALID', 'VIF Invalid')
    1.21 +XEND_ERROR_TODO                  = ('ETODO', 'Lazy Programmer Error')