Exemple #1
0
        private static void ThrowExceptionOn(Func <bool> predicate)
        {
            if (predicate())
            {
                virError error = GetLastError();

                if (error?.level == virErrorLevel.VIR_ERR_ERROR)
                {
                    throw new LibvirtException(error);
                }
            }
        }
 public LibvirtException(virError error) : base(error.Message)
 {
     this.Error = error;
 }