mirror of
https://github.com/pion/ice.git
synced 2025-10-01 22:02:07 +08:00

Lots of people are paying attention to what dependecies we add to their projects now. This just makes things a little cleaner. Resolves #469
30 lines
914 B
Go
30 lines
914 B
Go
package ice
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
// ErrUnknownType indicates an error with Unknown info.
|
|
ErrUnknownType = errors.New("Unknown")
|
|
|
|
// ErrSchemeType indicates the scheme type could not be parsed.
|
|
ErrSchemeType = errors.New("unknown scheme type")
|
|
|
|
// ErrSTUNQuery indicates query arguments are provided in a STUN URL.
|
|
ErrSTUNQuery = errors.New("queries not supported in stun address")
|
|
|
|
// ErrInvalidQuery indicates an malformed query is provided.
|
|
ErrInvalidQuery = errors.New("invalid query")
|
|
|
|
// ErrHost indicates malformed hostname is provided.
|
|
ErrHost = errors.New("invalid hostname")
|
|
|
|
// ErrPort indicates malformed port is provided.
|
|
ErrPort = errors.New("invalid port")
|
|
|
|
// ErrProtoType indicates an unsupported transport type was provided.
|
|
ErrProtoType = errors.New("invalid transport protocol type")
|
|
|
|
// ErrClosed indicates the agent is closed
|
|
ErrClosed = errors.New("the agent is closed")
|
|
)
|