errors.go 250 B

12345678910111213141516171819
  1. package vnet
  2. type timeoutError struct {
  3. msg string
  4. }
  5. func newTimeoutError(msg string) error {
  6. return &timeoutError{
  7. msg: msg,
  8. }
  9. }
  10. func (e *timeoutError) Error() string {
  11. return e.msg
  12. }
  13. func (e *timeoutError) Timeout() bool {
  14. return true
  15. }