lib/wcc/contentful/app/exceptions.rb in wcc-contentful-app-0.4.0.pre.rc vs lib/wcc/contentful/app/exceptions.rb in wcc-contentful-app-1.0.0.pre.rc1
- old
+ new
@@ -31,6 +31,15 @@
end
end
ret.flatten(1)
end
end
+
+ class PageNotFoundError < StandardError
+ attr_reader :slug
+
+ def initialize(slug)
+ super("Page not found: '#{slug}'")
+ @slug = slug
+ end
+ end
end