You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.6 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. package models
  2. import "errors"
  3. var ErrNotFound = errors.New("not found")
  4. var ErrInvalidName = errors.New("invalid name")
  5. var ErrBadInput = errors.New("bad input")
  6. var ErrBadColor = errors.New("bad color")
  7. var ErrInternal = errors.New("internal")
  8. var ErrUnknownColorFormat = errors.New("unknown color format")
  9. var ErrUnknownDriver = errors.New("unknown driver")
  10. var ErrMissingToken = errors.New("driver is missing authentication information")
  11. var ErrIncorrectToken = errors.New("driver is not accepting authentication information")
  12. var ErrUnexpectedResponse = errors.New("driver api returned unexpected response (wrong driver selected?)")
  13. var ErrBridgeSearchFailed = errors.New("bridge search failed")
  14. var ErrAddressOnlyDryRunnable = errors.New("this address may only be used for a dry run")
  15. var ErrInvalidAddress = errors.New("invalid mac address")
  16. var ErrPayloadTooShort = errors.New("payload too short")
  17. var ErrInvalidPacketSize = errors.New("invalid packet size")
  18. var ErrReadTimeout = errors.New("read timeout")
  19. var ErrUnrecognizedPacketType = errors.New("packet type not recognized")
  20. var ErrBridgeRunningRequired = errors.New("this operation cannot be performed when bridge is not running")
  21. var ErrSceneInvalidInterval = errors.New("scene interval must be 0 (=disabled) or greater")
  22. var ErrSceneNoRoles = errors.New("scene cannot have zero rules")
  23. var ErrSceneRoleNoStates = errors.New("scene rule has no states")
  24. var ErrSceneRoleUnsupportedOrdering = errors.New("scene rule has an unsupported ordering")
  25. var ErrSceneRoleUnknownEffect = errors.New("scene rule has an unknown effect")
  26. var ErrSceneRoleUnknownPowerMode = errors.New("scene rule has an unknown power mode")