(message string, rawErrData any)
| 109 | } |
| 110 | |
| 111 | func NewTooManyRequestsError(message string, rawErrData any) *ApiError { |
| 112 | if message == "" { |
| 113 | message = "Too Many Requests." |
| 114 | } |
| 115 | |
| 116 | return NewApiError(http.StatusTooManyRequests, message, rawErrData) |
| 117 | } |
| 118 | |
| 119 | // NewApiError creates and returns new normalized ApiError instance. |
| 120 | func NewApiError(status int, message string, rawErrData any) *ApiError { |
searching dependent graphs…