Sha256: d475057298473e7a83ad8e4d362831bcb9ee71c992a08a8458b2d5244b792468

Contents?: true

Size: 260 Bytes

Versions: 13

Compression:

Stored size: 260 Bytes

Contents

# frozen_string_literal: true

module Grape
  module Exceptions
    class EmptyMessageBody < Base
      def initialize(body_format)
        super(message: compose_message(:empty_message_body, body_format: body_format), status: 400)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
grape-2.2.0 lib/grape/exceptions/empty_message_body.rb
grape-2.1.3 lib/grape/exceptions/empty_message_body.rb
grape-2.1.2 lib/grape/exceptions/empty_message_body.rb
grape-2.1.1 lib/grape/exceptions/empty_message_body.rb
grape-2.1.0 lib/grape/exceptions/empty_message_body.rb
grape-2.0.0 lib/grape/exceptions/empty_message_body.rb
grape-1.8.0 lib/grape/exceptions/empty_message_body.rb
grape-1.7.1 lib/grape/exceptions/empty_message_body.rb
grape-1.7.0 lib/grape/exceptions/empty_message_body.rb
grape-1.6.2 lib/grape/exceptions/empty_message_body.rb
grape-1.6.1 lib/grape/exceptions/empty_message_body.rb
grape-1.6.0 lib/grape/exceptions/empty_message_body.rb
grape-1.5.3 lib/grape/exceptions/empty_message_body.rb