Exception: Pekky::Content::ContentMissingError

Inherits:
PekkyError
  • Object
show all
Defined in:
lib/pekky/content.rb

Overview

This error will be raised if a content YAML file cannot be found in the content directory – stored in Config

Instance Attribute Summary

Attributes inherited from PekkyError

#message, #title

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ ContentMissingError

Returns a new instance of ContentMissingError.



8
9
10
# File 'lib/pekky/content.rb', line 8

def initialize(path)
  @message = "The content file '#{path}.yml' could not be found."
end