Class: ForestLiana::Ability::Exceptions::UnknownCollection
- Inherits:
-
Errors::ExpectedError
- Object
- Errors::ExpectedError
- ForestLiana::Ability::Exceptions::UnknownCollection
- Defined in:
- app/services/forest_liana/ability/exceptions/unknown_collection.rb
Instance Method Summary collapse
-
#initialize(collection_name) ⇒ UnknownCollection
constructor
A new instance of UnknownCollection.
Constructor Details
#initialize(collection_name) ⇒ UnknownCollection
Returns a new instance of UnknownCollection.
5 6 7 8 9 10 11 12 |
# File 'app/services/forest_liana/ability/exceptions/unknown_collection.rb', line 5 def initialize(collection_name) super( 409, :conflict, "The collection #{collection_name} doesn't exist", 'collection not found' ) end |