ValidationError
An error type that is presented to the user as an error with parsing their command-line input.
struct ValidationError
An error type that is presented to the user as an error with parsing their command-line input.
struct ValidationError
import ArgumentParser
Straightforward, type-safe argument parsing for Swift.
Provide helpful feedback to users when things go wrong.
struct CleanExit
An error type that represents a clean (i.e. non-error state) exit of the utility.
struct ExitCode
An error type that only includes an exit code.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Error : Sendable
A type representing an error value that can be thrown.
protocol Sendable
A type whose values can safely be passed across concurrency domains by copying.
init(_ message: String)
Creates a new validation error with the given message.
var description: String { get }
var message: String { get }
The error message represented by this instance, this string is presented to the user when a ValidationError
is thrown from either; run()
, validate()
or a transform closure.
var localizedDescription: String { get }
Retrieve the localized description for this error.