apollo-backend/internal/reddit/errors.go
Andre Medeiros d17151a3b3 test reddit
2021-08-14 13:42:28 -04:00

19 lines
270 B
Go

package reddit
import (
"errors"
"fmt"
)
type ServerError struct {
StatusCode int
}
func (se ServerError) Error() string {
return fmt.Sprintf("errror from reddit: %d", se.StatusCode)
}
var (
// ErrOauthRevoked .
ErrOauthRevoked = errors.New("oauth revoked")
)