Sha256: d7ef847f759c27382abc72601b15db82fe087fafde7451fe3a6f5f430ae4dbec

Contents?: true

Size: 279 Bytes

Versions: 4

Compression:

Stored size: 279 Bytes

Contents

require 'grape/exceptions/base'

module Grape
  module Exceptions
    class ValidationError < Grape::Exceptions::Base
      attr_accessor :param

      def initialize(args = {})
        @param = args[:param].to_s if args.has_key? :param
        super
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
grape-0.2.6 lib/grape/exceptions/validation_error.rb
grape-0.2.5 lib/grape/exceptions/validation_error.rb
grape-0.2.4 lib/grape/exceptions/validation_error.rb
grape-0.2.3 lib/grape/exceptions/validation_error.rb