Class ConflictException
- Namespace
- ZeroInstall.DesktopIntegration
- Assembly
- ZeroInstall.DesktopIntegration.dll
Indicates a desktop integration operation could not be completed due to conflicting AccessPoints.
public sealed class ConflictException : InvalidOperationException, ISerializable
- Inheritance
-
ConflictException
- Implements
- Inherited Members
Constructors
ConflictException()
Initializes a new instance of the InvalidOperationException class.
public ConflictException()
ConflictException(string)
Initializes a new instance of the InvalidOperationException class with a specified error message.
public ConflictException(string message)
Parameters
messagestringThe message that describes the error.
ConflictException(string, Exception)
Initializes a new instance of the InvalidOperationException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public ConflictException(string message, Exception innerException)
Parameters
messagestringThe error message that explains the reason for the exception.
innerExceptionExceptionThe exception that is the cause of the current exception. If the
innerExceptionparameter is not a null reference (Nothingin Visual Basic), the current exception is raised in a catch block that handles the inner exception.
Properties
Entries
The entries that are in conflict with each other.
public IEnumerable<ConflictData>? Entries { get; }
Property Value
Methods
ExistingConflict(params ConflictData[])
Creates an exception indicating an existing desktop integration conflict.
public static ConflictException ExistingConflict(params ConflictData[] entries)
Parameters
entriesConflictData[]The entries that are in conflict with each other.
Returns
InnerConflict(params ConflictData[])
Creates an exception indicating an inner desktop integration conflict.
public static ConflictException InnerConflict(params ConflictData[] entries)
Parameters
entriesConflictData[]The entries that are in conflict with each other.
Returns
NewConflict(ConflictData, ConflictData)
Creates an exception indicating a new desktop integration conflict.
public static ConflictException NewConflict(ConflictData existingEntry, ConflictData newEntry)
Parameters
existingEntryConflictDataThe existing entry that is preventing
newEntryfrom being applied.newEntryConflictDataThe new entry that is in conflict with
existingEntry.