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
stringThe 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
stringThe error message that explains the reason for the exception.
innerException
ExceptionThe 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
stringThe digest value the Implementation was supposed to have.
actualDigest
stringThe digest value that was actually calculated.
expectedManifest
ManifestThe Manifest that resulted in the
expectedDigest
; may benull
.actualManifest
ManifestThe Manifest that resulted in the
actualDigest
.
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; }