errors.go 910 B

1234567891011121314151617181920212223242526272829303132
  1. package server
  2. import (
  3. "errors"
  4. )
  5. // .
  6. var (
  7. // server
  8. ErrHandshake = errors.New("handshake failed")
  9. ErrOperation = errors.New("request operation not valid")
  10. // ring
  11. ErrRingEmpty = errors.New("ring buffer empty")
  12. ErrRingFull = errors.New("ring buffer full")
  13. // timer
  14. ErrTimerFull = errors.New("timer full")
  15. ErrTimerEmpty = errors.New("timer empty")
  16. ErrTimerNoItem = errors.New("timer item not exist")
  17. // channel
  18. ErrPushMsgArg = errors.New("rpc pushmsg arg error")
  19. ErrPushMsgsArg = errors.New("rpc pushmsgs arg error")
  20. ErrMPushMsgArg = errors.New("rpc mpushmsg arg error")
  21. ErrMPushMsgsArg = errors.New("rpc mpushmsgs arg error")
  22. // bucket
  23. ErrBroadCastArg = errors.New("rpc broadcast arg error")
  24. ErrBroadCastRoomArg = errors.New("rpc broadcast room arg error")
  25. // room
  26. ErrRoomDroped = errors.New("room droped")
  27. // rpc
  28. ErrLogic = errors.New("logic rpc is not available")
  29. )