Sha256: ccea35009c9eeef28df442419a6ef3f3b66f940e9126fec7cd273dd4492c73a6

Contents?: true

Size: 567 Bytes

Versions: 3

Compression:

Stored size: 567 Bytes

Contents

require 'lotus/model/version'
require 'lotus/entity'
require 'lotus/repository'
require 'lotus/model/mapper'

module Lotus
  # Model
  #
  # @since 0.1.0
  module Model
    # Error for not found entity
    #
    # @since 0.1.0
    #
    # @see Lotus::Repository.find
    class EntityNotFound < ::StandardError
    end

    # Error for non persisted entity
    # It's raised when we try to update or delete a non persisted entity.
    #
    # @since 0.1.0
    #
    # @see Lotus::Repository.update
    class NonPersistedEntityError < ::StandardError
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lotus-model-0.1.2 lib/lotus/model.rb
lotus-model-0.1.1 lib/lotus/model.rb
lotus-model-0.1.0 lib/lotus/model.rb