diff options
Diffstat (limited to 'vendor/github.com/pion/transport/vnet/errors.go')
-rw-r--r-- | vendor/github.com/pion/transport/vnet/errors.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/vendor/github.com/pion/transport/vnet/errors.go b/vendor/github.com/pion/transport/vnet/errors.go new file mode 100644 index 0000000..d0e9394 --- /dev/null +++ b/vendor/github.com/pion/transport/vnet/errors.go @@ -0,0 +1,19 @@ +package vnet + +type timeoutError struct { + msg string +} + +func newTimeoutError(msg string) error { + return &timeoutError{ + msg: msg, + } +} + +func (e *timeoutError) Error() string { + return e.msg +} + +func (e *timeoutError) Timeout() bool { + return true +} |