enum ClosureErrorEnumError states that can be reported by the closure. The value range of 0x00 to 0x7F is for general errors, and the range of 0x80 to 0xBF is for vendor-specific errors.
-
An obstacle is blocking the closure movement.
Declaration
Swift
case physicallyBlocked -
The closure is unsafe to move, as determined by a sensor, such as a photoelectric sensor.
Declaration
Swift
case blockedBySensor -
A warning raised by the closure that indicates an over-temperature, possibly caused by an excessive drive or a stall current.
Declaration
Swift
case temperatureLimited -
Applies when malfunctions that are not easily recoverable are detected, or when urgent servicing is needed.
Declaration
Swift
case maintenanceRequired -
An internal element is prohibiting motion. For example this could be an integrated door that is open within a larger garage door so that the garage door is prevented from moving.
Declaration
Swift
case internalInterference -
Creates a new instance with the specified raw value.
If there is no value of the type that corresponds with the specified raw value, this initializer returns
nil. For example:enum PaperSize: String { case A4, A5, Letter, Legal } print(PaperSize(rawValue: "Legal")) // Prints "Optional(PaperSize.Legal)" print(PaperSize(rawValue: "Tabloid")) // Prints "nil"Declaration
Swift
init?(rawValue: UInt64)Parameters
rawValueThe raw value to use for the new instance.