Sha256: 7e251e23d034975a05498bee5b30ff7b550ab4b47d5b61a07377ff95b33dd822

Contents?: true

Size: 357 Bytes

Versions: 3

Compression:

Stored size: 357 Bytes

Contents

require 'minarai/errors/base'

module Minarai
  module Errors
    class AttributeValidationError < Base
      def initialize(attribute, error_message, name)
        @attribute = attribute
        @error_message = error_message
        @name = name
      end

      def to_s
        "`#{@attribute}` #{@error_message} @ #{@name}"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
minarai-0.0.3 lib/minarai/errors/attribute_validation_error.rb
minarai-0.0.2 lib/minarai/errors/attribute_validation_error.rb
minarai-0.0.1 lib/minarai/errors/attribute_validation_error.rb