github.com/ari-anchor/sei-tendermint@v0.0.0-20230519144642-dc826b7b56bb/types/errors_p2p.go (about) 1 package types 2 3 import ( 4 "fmt" 5 ) 6 7 //------------------------------------------------------------------- 8 9 type ErrNetAddressNoID struct { 10 Addr string 11 } 12 13 func (e ErrNetAddressNoID) Error() string { 14 return fmt.Sprintf("address (%s) does not contain ID", e.Addr) 15 } 16 17 type ErrNetAddressInvalid struct { 18 Addr string 19 Err error 20 } 21 22 func (e ErrNetAddressInvalid) Error() string { 23 return fmt.Sprintf("invalid address (%s): %v", e.Addr, e.Err) 24 } 25 26 type ErrNetAddressLookup struct { 27 Addr string 28 Err error 29 } 30 31 func (e ErrNetAddressLookup) Error() string { 32 return fmt.Sprintf("error looking up host (%s): %v", e.Addr, e.Err) 33 }