* TODO: updated, and added python hooks for error handling

* include/virterror.h src/virterror.c src/xml.c: error interception
  and reporting should be done.
Daniel
This commit is contained in:
Daniel Veillard
2006-02-27 22:32:54 +00:00
parent 5548938d62
commit 8bc437e412
6 changed files with 116 additions and 17 deletions

View File

@@ -41,6 +41,7 @@ typedef enum {
VIR_FROM_XEN, /* Error at Xen hypervisor layer */
VIR_FROM_XEND, /* Error at connection with xend daemon */
VIR_FROM_SEXPR, /* Error in the S-Epression code */
VIR_FROM_XML, /* Error in the XML code */
VIR_FROM_DOM, /* Error when operating on a domain */
} virErrorDomain;
@@ -89,6 +90,14 @@ typedef enum {
VIR_ERR_SEXPR_SERIAL,/* failure to serialize an S-Expr */
VIR_ERR_NO_XEN,/* could not open Xen hypervisor control */
VIR_ERR_XEN_CALL,/* failure doing an hypervisor call */
VIR_ERR_OS_TYPE, /* unknown OS type */
VIR_ERR_NO_KERNEL, /* missing kernel informations */
VIR_ERR_NO_ROOT, /* missing root device informations */
VIR_ERR_NO_SOURCE, /* missing source device informations */
VIR_ERR_NO_TARGET, /* missing target device informations */
VIR_ERR_NO_NAME, /* missing domain name informations */
VIR_ERR_NO_OS, /* missing domain OS informations */
VIR_ERR_NO_DEVICE, /* missing domain devices informations */
} virErrorNumber;
/**

View File

@@ -41,6 +41,7 @@ typedef enum {
VIR_FROM_XEN, /* Error at Xen hypervisor layer */
VIR_FROM_XEND, /* Error at connection with xend daemon */
VIR_FROM_SEXPR, /* Error in the S-Epression code */
VIR_FROM_XML, /* Error in the XML code */
VIR_FROM_DOM, /* Error when operating on a domain */
} virErrorDomain;
@@ -89,6 +90,14 @@ typedef enum {
VIR_ERR_SEXPR_SERIAL,/* failure to serialize an S-Expr */
VIR_ERR_NO_XEN,/* could not open Xen hypervisor control */
VIR_ERR_XEN_CALL,/* failure doing an hypervisor call */
VIR_ERR_OS_TYPE, /* unknown OS type */
VIR_ERR_NO_KERNEL, /* missing kernel informations */
VIR_ERR_NO_ROOT, /* missing root device informations */
VIR_ERR_NO_SOURCE, /* missing source device informations */
VIR_ERR_NO_TARGET, /* missing target device informations */
VIR_ERR_NO_NAME, /* missing domain name informations */
VIR_ERR_NO_OS, /* missing domain OS informations */
VIR_ERR_NO_DEVICE, /* missing domain devices informations */
} virErrorNumber;
/**