Sha256: 6bd5aaafe7a61b296fb6d787d1072ded7f290712cab132946373daa3f71e5672
Contents?: true
Size: 1.2 KB
Versions: 2
Compression:
Stored size: 1.2 KB
Contents
require 'lotus/model/mapping/collection' require 'lotus/model/mapping/collection_coercer' require 'lotus/model/mapping/coercers' module Lotus module Model # Mapping internal utilities # # @since 0.1.0 module Mapping # Unmapped collection error. # # It gets raised when the application tries to access to a non-mapped # collection. # # @since 0.1.0 class UnmappedCollectionError < Lotus::Model::Error def initialize(name) super("Cannot find collection: #{ name }") end end # Invalid entity error. # # It gets raised when the application tries to access to a existing # entity. # # @since 0.2.0 class EntityNotFound < Lotus::Model::Error def initialize(name) super("Cannot find class for entity: #{ name }") end end # Invalid repository error. # # It gets raised when the application tries to access to a existing # repository. # # @since 0.2.0 class RepositoryNotFound < Lotus::Model::Error def initialize(name) super("Cannot find class for repository: #{ name }") end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lotus-model-0.5.2 | lib/lotus/model/mapping.rb |
lotus-model-0.5.1 | lib/lotus/model/mapping.rb |