Table of Contents

Class DigestMismatchException

Namespace
ZeroInstall.Store.Implementations
Assembly
ZeroInstall.Store.dll

Indicates that the ManifestDigest of an implementation does not match the expected value.

public sealed class DigestMismatchException : Exception, ISerializable
Inheritance
DigestMismatchException
Implements
Inherited Members

Constructors

DigestMismatchException()

Initializes a new instance of the Exception class.

public DigestMismatchException()

DigestMismatchException(string)

Initializes a new instance of the Exception class with a specified error message.

public DigestMismatchException(string message)

Parameters

message string

The message that describes the error.

DigestMismatchException(string, Exception)

Initializes a new instance of the Exception class with a specified error message and a reference to the inner exception that is the cause of this exception.

public DigestMismatchException(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, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

DigestMismatchException(string?, string?, Manifest?, Manifest?)

Creates a new digest mismatch exception.

public DigestMismatchException(string? expectedDigest = null, string? actualDigest = null, Manifest? expectedManifest = null, Manifest? actualManifest = null)

Parameters

expectedDigest string

The digest value the Implementation was supposed to have.

actualDigest string

The digest value that was actually calculated.

expectedManifest Manifest

The Manifest that resulted in the expectedDigest; may be null.

actualManifest Manifest

The Manifest that resulted in the actualDigest.

Properties

ActualDigest

The hash value that was actually calculated.

public string? ActualDigest { get; }

Property Value

string

ActualManifest

The Manifest that resulted in the ActualDigest.

public Manifest? ActualManifest { get; }

Property Value

Manifest

ExpectedDigest

The hash value the Implementation was supposed to have.

public string? ExpectedDigest { get; }

Property Value

string

ExpectedManifest

The Manifest that resulted in the ExpectedDigest.

public Manifest? ExpectedManifest { get; }

Property Value

Manifest

LongMessage

A longer version of Message that contains more details. Suitable for verbose output.

public string LongMessage { get; }

Property Value

string