Sha256: c08e2dd584237a7f3c5df0644f9cfccd1fa7bad61d82d47b6cdecaa2b37230da

Contents?: true

Size: 482 Bytes

Versions: 13

Compression:

Stored size: 482 Bytes

Contents

# frozen_string_literal: true

module Modis
  class ModisError < StandardError; end
  class RecordNotSaved < ModisError; end
  class RecordNotFound < ModisError; end
  class RecordInvalid < ModisError; end
  class UnsupportedAttributeType < ModisError; end
  class AttributeCoercionError < ModisError; end
  class AttributeError < ModisError; end
  class IndexError < ModisError; end

  module Errors
    def errors
      @errors ||= ActiveModel::Errors.new(self)
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
modis-4.3.2 lib/modis/errors.rb
modis-4.3.1 lib/modis/errors.rb
modis-4.3.0 lib/modis/errors.rb
modis-4.2.0 lib/modis/errors.rb
modis-4.1.0 lib/modis/errors.rb
modis-4.0.1 lib/modis/errors.rb
modis-4.0.0 lib/modis/errors.rb
modis-3.3.0 lib/modis/errors.rb
modis-3.2.0 lib/modis/errors.rb
modis-3.1.0 lib/modis/errors.rb
modis-3.0.0 lib/modis/errors.rb
modis-2.1.0 lib/modis/errors.rb
modis-2.0.0 lib/modis/errors.rb