Exception: GraphitiGql::Errors::UnauthorizedField
- Defined in:
- lib/graphiti_gql/errors.rb
Instance Method Summary collapse
-
#initialize(field) ⇒ UnauthorizedField
constructor
A new instance of UnauthorizedField.
- #message ⇒ Object
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
#message ⇒ Object
16 17 18 |
# File 'lib/graphiti_gql/errors.rb', line 16 def "You are not authorized to read field #{@field}" end |