ArchivePasswordException Class

The exception that is thrown when an encrypted archive or entry is read without a password, or with a wrong password.

public sealed class ArchivePasswordException : IOException
Inheritance
IOException ArchivePasswordException

Constructors

NameDescription
ArchivePasswordException()Initializes a new instance of the ArchivePasswordException class.
ArchivePasswordException(string?)Initializes a new instance of the ArchivePasswordException class with a message.
ArchivePasswordException(string?, Exception?)Initializes a new instance of the ArchivePasswordException class with a message and the exception that caused it.

ArchivePasswordException overloads

ArchivePasswordException()

ArchivePasswordException.cs

Initializes a new instance of the ArchivePasswordException class.

public ArchivePasswordException()

ArchivePasswordException(string?)

ArchivePasswordException.cs

Initializes a new instance of the ArchivePasswordException class with a message.

public ArchivePasswordException(string? message)
Parameters
message string?
The message that describes the error.

ArchivePasswordException(string?, Exception?)

ArchivePasswordException.cs

Initializes a new instance of the ArchivePasswordException class with a message and the exception that caused it.

public ArchivePasswordException(string? message, Exception? innerException)
Parameters
message string?
The message that describes the error.
innerException Exception?
The exception that caused this exception.