WrongPassphraseException class

Thrown when a supplied passphrase (or the key derived from it) does not decrypt a database's existing local data.

Thrown by the disk-backed engine when it opens an existing encrypted file with a key that does not match. The file is left untouched — nothing is quarantined or reset — so retrying with the correct passphrase succeeds. The in-memory engine has nothing to validate against, so it does not throw this.

Implemented types

Constructors

WrongPassphraseException()
Creates the exception.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited