Class UnsuitableInstallBaseException
- Namespace
- ZeroInstall.Commands
- Assembly
- 0install.dll
Indicates that the current InstallBase is unsuitable for the desired operation.
[Serializable]
public sealed class UnsuitableInstallBaseException : NotSupportedException, ISerializable
- Inheritance
-
UnsuitableInstallBaseException
- Implements
- Inherited Members
Constructors
UnsuitableInstallBaseException()
Initializes a new instance of the NotSupportedException class, setting the Message property of the new instance to a system-supplied message that describes the error. This message takes into account the current system culture.
public UnsuitableInstallBaseException()
UnsuitableInstallBaseException(string)
Initializes a new instance of the NotSupportedException class with a specified error message.
public UnsuitableInstallBaseException(string message)
Parameters
messagestringA string that describes the error. The content of
messageis intended to be understood by humans. The caller of this constructor is required to ensure that this string has been localized for the current system culture.
UnsuitableInstallBaseException(string, bool)
Creates a new unsuitable install base exception.
public UnsuitableInstallBaseException(string message, bool needsMachineWide)
Parameters
messagestringA message describing why the current location in unsuitable.
needsMachineWidebooltrueif a machine-wide location is required;falseif a user-specific location will also do.
UnsuitableInstallBaseException(string, Exception)
Initializes a new instance of the NotSupportedException class with a specified error message and a reference to the inner exception that is the cause of this exception.
public UnsuitableInstallBaseException(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, the current exception is raised in a catch block that handles the inner exception.
Properties
NeedsMachineWide
true if a machine-wide install location is required; false if a user-specific location will also do.
public bool NeedsMachineWide { get; }