errors.go 660 B

1234567891011121314151617181920212223
  1. package mcping
  2. import (
  3. "errors"
  4. )
  5. //ErrAddress -> Could not parse address
  6. var ErrAddress = errors.New("mcping: could not parse address")
  7. //ErrResolve -. Could not resolve address
  8. var ErrResolve = errors.New("mcping: Could not resolve address")
  9. //ErrSmallPacket -> Response is too small
  10. var ErrSmallPacket = errors.New("mcping: Response too small")
  11. //ErrBigPacket -> Response is too large
  12. var ErrBigPacket = errors.New("mcping: Response too large")
  13. //ErrPacketType -> Response packet incorrect
  14. var ErrPacketType = errors.New("mcping: Response packet type incorrect")
  15. //ErrTimeout -> Timeout error
  16. var ErrTimeout = errors.New("mcping: Timeout occured")