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.

24 lines
1.2 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")