Sha256: f920cdeaa67cf1f7e90926b47273014ad32751785e4d8636ab70e2408504af24

Contents?: true

Size: 451 Bytes

Versions: 6

Compression:

Stored size: 451 Bytes

Contents

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

6 entries across 6 versions & 1 rubygems

Version Path
modis-1.4.2 lib/modis/errors.rb
modis-1.4.1-java lib/modis/errors.rb
modis-1.4.1 lib/modis/errors.rb
modis-1.4.0 lib/modis/errors.rb
modis-1.3.0 lib/modis/errors.rb
modis-1.2.0 lib/modis/errors.rb