lib/hanami/model.rb in hanami-model-0.6.0 vs lib/hanami/model.rb in hanami-model-0.6.1

- old
+ new

@@ -9,46 +9,10 @@ module Hanami # Model # # @since 0.1.0 module Model - # Error for non persisted entity - # It's raised when we try to update or delete a non persisted entity. - # - # @since 0.1.0 - # - # @see Hanami::Repository.update - class NonPersistedEntityError < Hanami::Model::Error - end - - # Error for invalid mapper configuration - # It's raised when mapping is not configured correctly - # - # @since 0.2.0 - # - # @see Hanami::Configuration#mapping - class InvalidMappingError < Hanami::Model::Error - end - - # Error for invalid raw command syntax - # - # @since 0.5.0 - class InvalidCommandError < Hanami::Model::Error - def initialize(message = "Invalid command") - super - end - end - - # Error for invalid raw query syntax - # - # @since 0.3.1 - class InvalidQueryError < Hanami::Model::Error - def initialize(message = "Invalid query") - super - end - end - include Utils::ClassAttribute # Framework configuration # # @since 0.2.0 @@ -202,8 +166,7 @@ } duplicated.configure(&blk) if block_given? end end - end end