lib/lotus/model/adapters/null_adapter.rb in lotus-model-0.5.0 vs lib/lotus/model/adapters/null_adapter.rb in lotus-model-0.5.1
- old
+ new
@@ -1,11 +1,13 @@
+require 'lotus/model/error'
+
module Lotus
module Model
module Adapters
# @since 0.2.0
- class NoAdapterError < ::StandardError
+ class NoAdapterError < Lotus::Model::Error
def initialize(method_name)
- super("Cannot invoke `#{ method_name }' without selecting an adapter. Please check your framework configuration.")
+ super("Cannot invoke `#{ method_name }' on repository. Please check if `adapter' and `mapping' are set.")
end
end
# @since 0.2.0
# @api private