Sha256: 10c7c0805edb7a7e3715339ceddf3ba696781c1b1cbf44dcd943aec50aea5ae5

Contents?: true

Size: 482 Bytes

Versions: 4

Compression:

Stored size: 482 Bytes

Contents

# frozen_string_literal: true
require 'erratum'

module  Drillbit
module  Errors
class   UnpermittedInclusions < RuntimeError
  include Erratum::Error

  attr_accessor :inclusions

  def http_status
    422
  end

  def title
    'Unpermitted Inclusion'
  end

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

  def source
    { inclusions: inclusions }
  end
end
end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
drillbit-2.11.0 lib/drillbit/errors/unpermitted_inclusions.rb
drillbit-2.10.0 lib/drillbit/errors/unpermitted_inclusions.rb
drillbit-2.9.1 lib/drillbit/errors/unpermitted_inclusions.rb
drillbit-2.9.0 lib/drillbit/errors/unpermitted_inclusions.rb