ValidationError
public struct ValidationError: Codable, Error
An error that occurs while validating a value.
-
The machine readable ID for the error.
Declaration
Swift
public let identifier: String
-
The human readable reason that the error occured.
Declaration
Swift
public let reason: String
-
Creates a new
ValidationError
instance.Declaration
Swift
public init(identifier: String, reason: String)
Parameters
identifier
The machine readable ID for the error.
reason
The human readable reason that the error occured.