Sha256: e04cf5705b7e0bec198fbe614bb903ea3acfa2fa32d27bc2bf202ffe6ab4c311

Contents?: true

Size: 619 Bytes

Versions: 15

Compression:

Stored size: 619 Bytes

Contents

# frozen_string_literal: true

require "hanami/middleware/error"

module Hanami
  module Middleware
    # @since 1.3.0
    # @api private
    class BodyParser
      # Body parsing error
      # This is raised when parser fails to parse the body
      #
      # @since 1.3.0
      class BodyParsingError < Hanami::Middleware::Error
      end

      # @since 1.3.0
      class UnknownParserError < Hanami::Middleware::Error
        def initialize(name)
          super("Unknown body parser: `#{name.inspect}'")
        end
      end

      class InvalidParserError < Hanami::Middleware::Error
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
hanami-router-2.2.0 lib/hanami/middleware/body_parser/errors.rb
hanami-router-2.2.0.rc1 lib/hanami/middleware/body_parser/errors.rb
hanami-router-2.2.0.beta2 lib/hanami/middleware/body_parser/errors.rb
hanami-router-2.2.0.beta1 lib/hanami/middleware/body_parser/errors.rb
hanami-router-2.1.0 lib/hanami/middleware/body_parser/errors.rb
hanami-router-2.1.0.rc3 lib/hanami/middleware/body_parser/errors.rb
hanami-router-2.1.0.rc2 lib/hanami/middleware/body_parser/errors.rb
hanami-router-2.1.0.rc1 lib/hanami/middleware/body_parser/errors.rb
hanami-router-2.1.0.beta1 lib/hanami/middleware/body_parser/errors.rb
hanami-router-2.0.2 lib/hanami/middleware/body_parser/errors.rb
hanami-router-2.0.1 lib/hanami/middleware/body_parser/errors.rb
hanami-router-2.0.0 lib/hanami/middleware/body_parser/errors.rb
hanami-router-2.0.0.rc1 lib/hanami/middleware/body_parser/errors.rb
hanami-router-2.0.0.beta4 lib/hanami/middleware/body_parser/errors.rb
hanami-router-2.0.0.beta2 lib/hanami/middleware/body_parser/errors.rb