DArgon2Exception class

A generic exception class to present each of the thrown exceptions from the Argon2 Library to allow users to know exactly what errored

try {
  argon2.verifyHashString('password', 'incorrect encoded hash');
} on DArgon2Exception catch (e) {
  print(e.message);
}
Implemented types

Constructors

DArgon2Exception(String message, DArgon2ErrorCode errorCode)
The constructor for the Exception, which simplifies a thrown error in the Argon2 hashing or verification process.

Properties

errorCode DArgon2ErrorCode
The enumerated error code type, giving a brief error description.
final
hashCode int
The hash code for this object.
no setterinherited
message String
The verbose error message, describing what caused the error.
final
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
The toString method that returns a String containing both the errorCode and the message
override

Operators

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