# ClosureErrorEnum

    enum ClosureErrorEnum

Error 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.
- `


  ### [physicallyBlocked](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ClosureControlTrait/ClosureErrorEnum#/s:15GoogleHomeTypes6MatterO19ClosureControlTraitV0E9ErrorEnumO17physicallyBlockedyA2GmF)


  ` An obstacle is blocking the closure movement.

  #### Declaration

  Swift

      case physicallyBlocked

- `


  ### [blockedBySensor](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ClosureControlTrait/ClosureErrorEnum#/s:15GoogleHomeTypes6MatterO19ClosureControlTraitV0E9ErrorEnumO15blockedBySensoryA2GmF)


  ` The closure is unsafe to move, as determined by a sensor, such as a photoelectric sensor.

  #### Declaration

  Swift

      case blockedBySensor

- `


  ### [temperatureLimited](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ClosureControlTrait/ClosureErrorEnum#/s:15GoogleHomeTypes6MatterO19ClosureControlTraitV0E9ErrorEnumO18temperatureLimitedyA2GmF)


  ` 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

- `


  ### [maintenanceRequired](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ClosureControlTrait/ClosureErrorEnum#/s:15GoogleHomeTypes6MatterO19ClosureControlTraitV0E9ErrorEnumO19maintenanceRequiredyA2GmF)


  ` Applies when malfunctions that are not easily recoverable are detected, or when urgent
  servicing is needed.

  #### Declaration

  Swift

      case maintenanceRequired

- `


  ### [internalInterference](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ClosureControlTrait/ClosureErrorEnum#/s:15GoogleHomeTypes6MatterO19ClosureControlTraitV0E9ErrorEnumO20internalInterferenceyA2GmF)


  ` 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

- `


  ### [init(rawValue:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/ClosureControlTrait/ClosureErrorEnum#/s:15GoogleHomeTypes6MatterO19ClosureControlTraitV0E9ErrorEnumO8rawValueAGSgs6UInt64V_tcfc)


  ` 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

  |---|---|
  | ` rawValue ` | The raw value to use for the new instance. |