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
message
stringThe 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
message
stringThe error message that explains the reason for the exception.
innerException
ExceptionThe exception that is the cause of the current exception. If the
innerException
parameter is not a null reference (Nothing
in 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
entries
ConflictData[]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
entries
ConflictData[]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
existingEntry
ConflictDataThe existing entry that is preventing
newEntry
from being applied.newEntry
ConflictDataThe new entry that is in conflict with
existingEntry
.