mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Add the construction and inspection API for BlockError, consisting on constructors that accept a kind and optional source, builder methods that attach context after the fact, and accessors for retrieving the kind, context, and typed source references. The builder pattern allows callers to enrich errors at each level of the call stack. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>