matterbridge/vendor/github.com/SevereCloud/vksdk/v2/longpoll-bot/errors.go

19 lines
230 B
Go
Raw Normal View History

package longpoll
import (
"fmt"
)
// Failed struct.
type Failed struct {
Code int
}
// Error returns the message of a Failed.
func (e Failed) Error() string {
return fmt.Sprintf(
"longpoll: failed code %d",
e.Code,
)
}