Failures
public enum Failures : LocalizedError
extension ClosureChain.Failures: Equatable
Failures that may be sent to the catch
block due to run-time errors
-
Cannot execute
Link.succeed()
more than once per try blockDeclaration
Swift
case cannotSucceedTwicePerTry
-
Cannot
throw
orLink.throw()
more than once per chainDeclaration
Swift
case cannotThrowTwice
-
Try block specifies a parameter requirement, but none was given by the previous try block
Declaration
Swift
case tryBlockExpectsPriorSuccessWithParameter
-
Cannot .start() a chain more than once
Declaration
Swift
case cannotStartTwice
-
A chain with a try block was declared but never started
Declaration
Swift
case chainWasNeverStarted
-
Try block specifies a parameter requirement, but the type does not match given by the previous try block. (expected, actual)
Declaration
Swift
case parameterTypeMismatch(Any.Type, Any.Type)
-
Undocumented
Declaration
Swift
case noParameterAvailable
-
Declaration
Swift
public var errorDescription: String? { get }
-
Determine if two ClosureChain.Failures are equal
Declaration
Swift
public static func == (lhs: ClosureChain.Failures, rhs: ClosureChain.Failures) -> Bool
Parameters
lhs
ClosureChain.Failures
rhs
ClosureChain.Failures
Return Value
if lhs and rhs and all parameters are equal