Table of Contents

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

message string

A string that describes the error. The content of message is 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

message string

A message describing why the current location in unsuitable.

needsMachineWide bool

true if a machine-wide location is required; false if 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

message string

The error message that explains the reason for the exception.

innerException Exception

The exception that is the cause of the current exception. If the innerException parameter 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; }

Property Value

bool