mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-10 01:31:45 +00:00

Adding new `AddAwardEmoji`, `RemoveAwardEmoji` and `ToggleAwardEmoji` GraphQL mutations. Adding new `#authorized_find_with_pre_checks!` and (unused, but for completeness `#authorized_find_with_post_checks!`) authorization methods. These allow us to perform an authorized find, and run our own additional checks before or after the authorization runs. https://gitlab.com/gitlab-org/gitlab-ce/issues/62826
13 lines
287 B
Ruby
13 lines
287 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Gitlab
|
|
module Graphql
|
|
module Errors
|
|
BaseError = Class.new(GraphQL::ExecutionError)
|
|
ArgumentError = Class.new(BaseError)
|
|
ResourceNotAvailable = Class.new(BaseError)
|
|
MutationError = Class.new(BaseError)
|
|
end
|
|
end
|
|
end
|