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.

32 lines
1.7 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 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 ErrCannotForwardRequest = errors.New("driver is not able to forward requests")
  16. var ErrInvalidAddress = errors.New("invalid mac address")
  17. var ErrPayloadTooShort = errors.New("payload too short")
  18. var ErrInvalidPacketSize = errors.New("invalid packet size")
  19. var ErrReadTimeout = errors.New("read timeout")
  20. var ErrUnrecognizedPacketType = errors.New("packet type not recognized")
  21. var ErrBridgeRunningRequired = errors.New("this operation cannot be performed when bridge is not running")
  22. var ErrSceneInvalidInterval = errors.New("scene interval must be 0 (=disabled) or greater")
  23. var ErrSceneNoRoles = errors.New("scene cannot have zero rules")
  24. var ErrSceneRoleNoStates = errors.New("scene rule has no states")
  25. var ErrSceneRoleUnsupportedOrdering = errors.New("scene rule has an unsupported ordering")
  26. var ErrSceneRoleUnknownEffect = errors.New("scene rule has an unknown effect")
  27. var ErrSceneRoleUnknownPowerMode = errors.New("scene rule has an unknown power mode")