Exception: ActiveStash::CollectionError
- Inherits:
-
ActiveStashError
- Object
- StandardError
- ActiveStashError
- ActiveStash::CollectionError
- Defined in:
- lib/active_stash/error.rb
Overview
Raised when no collection exists
Direct Known Subclasses
CollectionDivergedError, CollectionExistsError, NoCollectionError, NoMatchAllError
Instance Method Summary collapse
- #default_message(name) ⇒ Object
-
#initialize(message = nil, name: nil) ⇒ CollectionError
constructor
A new instance of CollectionError.
Constructor Details
#initialize(message = nil, name: nil) ⇒ CollectionError
Returns a new instance of CollectionError.
16 17 18 19 20 21 22 |
# File 'lib/active_stash/error.rb', line 16 def initialize( = nil, name: nil) if name && ! = (name) end super() end |
Instance Method Details
#default_message(name) ⇒ Object
24 25 26 |
# File 'lib/active_stash/error.rb', line 24 def (name) "An error occurred that relates to the '#{name}' collection" end |