Global Variables
The following global variables are available globally.
-
A failure
ResultreturningerrorThe default error is an empty one so thatfailure()is legal To assign this to a variable, you must explicitly give a type. Otherwise the compiler has no idea whatTis. This form is preferred to Result.Failure(error) because it provides a useful default. For example: let fail: Result= failure() Dictionary keys for default errors
Declaration
Swift
public let ErrorFileKey = "LMErrorFile" -
Undocumented
View on GitHub
Global Variables Reference