ValidationError
public struct ValidationError : Error, CustomStringConvertible
ValidationError represents the error with message when validation fails.
-
Validatible responsible for the error
Declaration
Swift
public var validatable: NamedValidatable -
Initializes a
ValidationErrorobject with message String.Declaration
Swift
public init(_ message: String, for validatable: NamedValidatable)Parameters
messageString that holds error message.
forValidatable responsible for the error.
Return Value
An initialized object.
-
Error Description
Declaration
Swift
public var description: String { get }
View on GitHub
ValidationError Structure Reference