Argon2SwiftException
public struct Argon2SwiftException : Error
An exception to handle any Argon2
related hashing and/or verification errors
-
The error message
Declaration
Swift
public let message: String
-
The error code
Declaration
Swift
public let errorCode: Argon2SwiftErrorCode
-
Creates a throwable error object with the given code and message
Declaration
Swift
init(_ message: String, errorCode: Argon2SwiftErrorCode)
Parameters
message
The detailed error message
errorCode
The shorthand error code
Return Value
An
Argon2SwiftException
object with the given error code and message -
A getter for the error’s localized description
Declaration
Swift
public var localizedDescription: String { get }
Return Value
A
String
with the error code and message