Exception: Pekky::Content::FieldMissingError
- Inherits:
-
PekkyError
- Object
- StandardError
- PekkyError
- Pekky::Content::FieldMissingError
- 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
Instance Method Summary collapse
-
#initialize(field) ⇒ FieldMissingError
constructor
A new instance of FieldMissingError.
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 |