Class: ForestLiana::Ability::Exceptions::UnknownCollection

Inherits:
Errors::ExpectedError
  • Object
show all
Defined in:
app/services/forest_liana/ability/exceptions/unknown_collection.rb

Instance Method Summary collapse

Constructor Details

#initialize(collection_name, backtrace = nil) ⇒ UnknownCollection

Returns a new instance of UnknownCollection.



5
6
7
8
9
10
11
12
13
# File 'app/services/forest_liana/ability/exceptions/unknown_collection.rb', line 5

def initialize(collection_name, backtrace = nil)
  super(
    409,
    :conflict,
    "The collection #{collection_name} doesn't exist",
    'collection not found',
    backtrace
  )
end