mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
All error cases used `ValidationError` with a String containing context about the error. This is suboptimal as the error kind itself does not contain any context about the actual failure cause. Furthermore, this does not allow to build error chains as underlaying errors are replaced with the respective message string. We improve the situation by introducing specific error variants for failure case. This also allows us to test the respective code paths more easily. Signed-off-by: Pascal Scholz <pascal.scholz@cyberus-technology.de> On-behalf-of: SAP pascal.scholz@sap.com