Sha256: ef763c19c49d2bcd37bef348c4facd67b36589dd09167cb03b7a7a4f233181bb

Contents?: true

Size: 251 Bytes

Versions: 10

Compression:

Stored size: 251 Bytes

Contents

# encoding: utf-8
module Grape
  module Exceptions
    class InvalidMessageBody < Base
      def initialize(body_format)
        super(message: compose_message(:invalid_message_body, body_format: body_format), status: 400)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
grape-1.0.1 lib/grape/exceptions/invalid_message_body.rb
grape-1.0.0 lib/grape/exceptions/invalid_message_body.rb
grape-0.19.2 lib/grape/exceptions/invalid_message_body.rb
grape-0.19.1 lib/grape/exceptions/invalid_message_body.rb
grape-0.19.0 lib/grape/exceptions/invalid_message_body.rb
grape-0.18.0 lib/grape/exceptions/invalid_message_body.rb
grape-0.17.0 lib/grape/exceptions/invalid_message_body.rb
grape-0.16.2 lib/grape/exceptions/invalid_message_body.rb
grape-0.16.1 lib/grape/exceptions/invalid_message_body.rb
grape-0.15.0 lib/grape/exceptions/invalid_message_body.rb