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
messagestringThe 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
messagestringThe error message that explains the reason for the exception.
innerExceptionExceptionThe exception that is the cause of the current exception, or a null reference (
Nothingin 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
expectedDigeststringThe digest value the Implementation was supposed to have.
actualDigeststringThe digest value that was actually calculated.
expectedManifestManifestThe Manifest from which
expectedDigestwas derived.actualManifestManifestThe Manifest that
actualDigestwas derived from.
Properties
ActualDigest
The hash value that was actually calculated.
public string? ActualDigest { get; }
Property Value
ActualManifest
The Manifest that resulted in the ActualDigest.
public Manifest? ActualManifest { get; }
Property Value
ExpectedDigest
The hash value the Implementation was supposed to have.
public string? ExpectedDigest { get; }
Property Value
ExpectedManifest
The Manifest that resulted in the ExpectedDigest.
public Manifest? ExpectedManifest { get; }
Property Value
LongMessage
A longer version of Message that contains more details. Suitable for verbose output.
public string LongMessage { get; }