ValueError
public enum ValueError : Error
Errors caused by values of variables.
-
An argument to a method does not have a valid value.
Declaration
Swift
case invalidArgument -
An optional is nil when it should not be.
Declaration
Swift
case `nil` -
A variable (not necessarily an argument to a method) has an invalid value.
Declaration
Swift
case invalidState
ValueError Enumeration Reference