Exception: GraphitiGql::Errors::UnauthorizedField

Inherits:
Base
  • Object
show all
Defined in:
lib/graphiti_gql/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(field) ⇒ UnauthorizedField

Returns a new instance of UnauthorizedField.



12
13
14
# File 'lib/graphiti_gql/errors.rb', line 12

def initialize(field)
  @field = field
end

Instance Method Details

#messageObject



16
17
18
# File 'lib/graphiti_gql/errors.rb', line 16

def message
  "You are not authorized to read field #{@field}"
end