Exception: Pekky::Content::FieldMissingError

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

Overview

Raised if the user tries to access a field that doesn’t exist.

Instance Attribute Summary

Attributes inherited from PekkyError

#message, #title

Instance Method Summary collapse

Constructor Details

#initialize(field) ⇒ FieldMissingError

Returns a new instance of FieldMissingError.



15
16
17
# File 'lib/pekky/content.rb', line 15

def initialize(field)
  @message = "The field '#{field}' doesn't exist."
end