Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCaptcha = &gqlerror.Error{ Message: "The captcha challenge has not been met.", Extensions: map[string]any{"code": "CAPTCHA"}, }
View Source
var ErrConstraint = &gqlerror.Error{ Message: "Input violates data constraints.", Extensions: map[string]any{"code": "CONSTRAINT"}, }
View Source
var ErrInput = &gqlerror.Error{ Message: "The input data is not in a valid format.", Extensions: map[string]any{"code": "INPUT"}, }
View Source
var ErrInternal = &gqlerror.Error{ Message: "Internal system error.", Extensions: map[string]any{"code": "INTERNAL"}, }
View Source
var ErrNotFound = &gqlerror.Error{ Message: "The specified resource does not exist.", Extensions: map[string]any{"code": "NOT_FOUND"}, }
View Source
var ErrRateLimit = &gqlerror.Error{ Message: "A limit of attempts per unit of time has been reached for this action.", Extensions: map[string]any{"code": "RATE_LIMIT"}, }
View Source
var ErrUnauthenticated = &gqlerror.Error{ Message: "This action requires authentication.", Extensions: map[string]any{"code": "UNAUTHENTICATED"}, }
View Source
var ErrValidation = &gqlerror.Error{ Message: "Input does not meet data validation rules.", Extensions: map[string]any{"code": "VALIDATION"}, }
View Source
var ErrWrongPassword = &gqlerror.Error{ Message: "This action requires providing the right password.", Extensions: map[string]any{"code": "WRONG_PASSWORD"}, }
Functions ¶
func NewErrorPresenter ¶
func NewErrorPresenter(cfg *config.Config) graphql.ErrorPresenterFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.