Skip to content

Commit

Permalink
refactor: rename some APIError methods
Browse files Browse the repository at this point in the history
  • Loading branch information
liushuangls committed Mar 22, 2024
1 parent 17f210b commit 8ff4c2d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions error.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,27 @@ func (e *APIError) IsInvalidRequestErr() bool {
return e.Type == InvalidRequestErr
}

func (e *APIError) AuthenticationErr() bool {
func (e *APIError) IsAuthenticationErr() bool {
return e.Type == AuthenticationErr
}

func (e *APIError) PermissionErr() bool {
func (e *APIError) IsPermissionErr() bool {
return e.Type == PermissionErr
}

func (e *APIError) NotFoundErr() bool {
func (e *APIError) IsNotFoundErr() bool {
return e.Type == NotFoundErr
}

func (e *APIError) RateLimitErr() bool {
func (e *APIError) IsRateLimitErr() bool {
return e.Type == RateLimitErr
}

func (e *APIError) ApiErr() bool {
func (e *APIError) IsApiErr() bool {
return e.Type == ApiErr
}

func (e *APIError) OverloadedErr() bool {
func (e *APIError) IsOverloadedErr() bool {
return e.Type == OverloadedErr
}

Expand Down

0 comments on commit 8ff4c2d

Please sign in to comment.