wip: migrate to mono-repo. SPN has already been moved to spn/
This commit is contained in:
21
spn/hub/errors.go
Normal file
21
spn/hub/errors.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package hub
|
||||
|
||||
import "errors"
|
||||
|
||||
var (
|
||||
// ErrMissingInfo signifies that the hub is missing the HubAnnouncement.
|
||||
ErrMissingInfo = errors.New("hub has no announcement")
|
||||
|
||||
// ErrMissingTransports signifies that the hub announcement did not specify any transports.
|
||||
ErrMissingTransports = errors.New("hub announcement has no transports")
|
||||
|
||||
// ErrMissingIPs signifies that the hub announcement did not specify any IPs,
|
||||
// or none of the IPs is supported by the client.
|
||||
ErrMissingIPs = errors.New("hub announcement has no (supported) IPs")
|
||||
|
||||
// ErrTemporaryValidationError is returned when a validation error might be temporary.
|
||||
ErrTemporaryValidationError = errors.New("temporary validation error")
|
||||
|
||||
// ErrOldData is returned when received data is outdated.
|
||||
ErrOldData = errors.New("")
|
||||
)
|
||||
Reference in New Issue
Block a user