Sha256: 58b0ddec0e9541adc527a811fc16bc8a4fecabbad84c1833c20502ffe50c7192

Contents?: true

Size: 500 Bytes

Versions: 2

Compression:

Stored size: 500 Bytes

Contents

# frozen_string_literal: true

module Grape
  module Exceptions
    class UnsupportedGroupType < Base
      def initialize
        super(message: compose_message(:unsupported_group_type))
      end
    end
  end
end

Grape::Exceptions::UnsupportedGroupTypeError = Class.new(Grape::Exceptions::UnsupportedGroupType) do
  def initialize(*)
    super
    warn '[DEPRECATION] `Grape::Exceptions::UnsupportedGroupTypeError` is deprecated. Use `Grape::Exceptions::UnsupportedGroupType` instead.'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
grape-1.7.1 lib/grape/exceptions/unsupported_group_type.rb
grape-1.7.0 lib/grape/exceptions/unsupported_group_type.rb