VirtualMachineCommitException

A commit in which at least one machine failed.

Note
Carry the whole CommitResult, because a partially failed commit is exactly the case where the caller most need to know what DID happen: the throw say four machines failed, the result say the other eleven were created. A commit that reports its outcome only when it succeed force the caller to rediscover the environment.
public sealed class VirtualMachineCommitException : VirtualizationException, ISerializable

1. Constructors

1.1. VirtualMachineCommitException(string, VirtualMachineCommitResult, Exception)

Initialises a new instance of the VirtualMachineCommitException class.

public VirtualMachineCommitException(string message, VirtualMachineCommitResult commitResult, Exception innerException)
Table 1. Parameters
Name Type Description

message

string

Message describing which machines failed.

commitResult

VirtualMachineCommitResult

Everything the commit did, failures included.

innerException

Exception

Cause of the FIRST failure, so the reason is not lost.

2. Properties

2.1. CommitResult

Gets everything the commit did before, during and after the failures.

public VirtualMachineCommitResult CommitResult { get; }