mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-13 07:27:43 +00:00
20 lines
270 B
Go
20 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")
|
||
|
)
|