Sha256: 1d59ada64ad921f6b1872ea02965e2d90f2e41a82a0ad5a97fa9c0db99020c5f

Contents?: true

Size: 397 Bytes

Versions: 2

Compression:

Stored size: 397 Bytes

Contents

require 'media_types/deserialization/error'

module MediaTypes
  module Deserialization
    class ContentTypeNotRecognised < Error
      def initialize(content_type)
        set_backtrace(source.backtrace)
        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.1 lib/media_types/deserialization/content_type_not_recognised.rb
media_types-deserialization-0.1.0 lib/media_types/deserialization/content_type_not_recognised.rb