Exception: Drillbit::Errors::UnpermittedInclusions

Inherits:
RuntimeError
  • Object
show all
Includes:
Erratum::Error
Defined in:
lib/drillbit/errors/unpermitted_inclusions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#inclusionsObject

Returns the value of attribute inclusions.



10
11
12
# File 'lib/drillbit/errors/unpermitted_inclusions.rb', line 10

def inclusions
  @inclusions
end

Instance Method Details

#detailObject



20
21
22
23
# File 'lib/drillbit/errors/unpermitted_inclusions.rb', line 20

def detail
  'One or more of the inclusions you attempted to pass via the "include" parameter ' \
  'are either not available or not authorized.'
end

#http_statusObject



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

def http_status
  422
end

#sourceObject



25
26
27
# File 'lib/drillbit/errors/unpermitted_inclusions.rb', line 25

def source
  { inclusions: inclusions }
end

#titleObject



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

def title
  'Unpermitted Inclusion'
end