Skip to content

Commit

Permalink
services: Implement GSP-127: Add ServiceInternal and RequestThrottled…
Browse files Browse the repository at this point in the history
… Errors (#616)

* services: Implement GSP-127: Add ServiceInternal and RequestThrottled Errors (#612)

* style: add space afer the comment line and change the description
  • Loading branch information
junaire authored Jul 5, 2021
1 parent e04cb48 commit 4787bc3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ var (
ErrListModeInvalid = NewErrorCode("list mode invalid")
// ErrServiceNotRegistered means this service is not registered.
ErrServiceNotRegistered = NewErrorCode("service not registered")
// ErrServiceInternal means this service has an internal error.
ErrServiceInternal = NewErrorCode("service internal")
// ErrRequestThrottled means there are too many requests.
ErrRequestThrottled = NewErrorCode("request throttled")
)

// InitError means this service init failed.
Expand Down

0 comments on commit 4787bc3

Please sign in to comment.