Sha256: 5f20f928d5e63ec7472ff91df944dfb7bfcbb1e6ddf9806a9ac2491f79fd9fb6

Contents?: true

Size: 356 Bytes

Versions: 2

Compression:

Stored size: 356 Bytes

Contents

require 'media_types/deserialization/error'

module MediaTypes
  module Deserialization
    class ContentTypeNotRecognised < Error
      def initialize(content_type)
        super format(
          'The Content-Type: %<content_type>s is not recognised or supported',
          content_type: content_type
        )
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
media_types-deserialization-0.1.3 lib/media_types/deserialization/content_type_not_recognised.rb
media_types-deserialization-0.1.2 lib/media_types/deserialization/content_type_not_recognised.rb