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.

33 lines
1.8 KiB

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