Exception: WCC::Contentful::App::PageNotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/wcc/contentful/app/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(slug) ⇒ PageNotFoundError

Returns a new instance of PageNotFoundError.



40
41
42
43
# File 'lib/wcc/contentful/app/exceptions.rb', line 40

def initialize(slug)
  super("Page not found: '#{slug}'")
  @slug = slug
end

Instance Attribute Details

#slugObject (readonly)

Returns the value of attribute slug.



38
39
40
# File 'lib/wcc/contentful/app/exceptions.rb', line 38

def slug
  @slug
end