mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
* 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:
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user