errors

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package errors provides helpers to determines github api client errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBadRequest

func IsBadRequest(err error) bool

IsBadRequest returns true if given error is github.ErrorResponse and http response status code is http.StatusBadRequest

func IsConflict

func IsConflict(err error) bool

IsConflict returns true if given error is github.ErrorResponse and http response status code is http.StatusConflict

func IsForbidden

func IsForbidden(err error) bool

IsForbidden returns true if given error is github.ErrorResponse and http response status code is http.StatusForbidden

func IsGone

func IsGone(err error) bool

IsGone returns true if given error is github.ErrorResponse and http response status code is http.StatusGone

func IsNotFound

func IsNotFound(err error) bool

IsNotFound returns true if given error is github.ErrorResponse and http response status code is http.StatusNotFound

func IsRequestTimeout

func IsRequestTimeout(err error) bool

IsRequestTimeout returns true if given error is github.ErrorResponse and http response status code is http.StatusRequestTimeout

func IsReteLimit

func IsReteLimit(err error) bool

IsReteLimit returns true if given error is github.RateLimitError

func IsUnauthorized

func IsUnauthorized(err error) bool

IsUnauthorized returns true if given error is github.ErrorResponse and http response status code is http.StatusUnauthorized

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL