Exception: Textus::BadFrontmatter

Inherits:
Error
  • Object
show all
Defined in:
lib/textus/errors.rb

Instance Attribute Summary

Attributes inherited from Error

#code, #details, #exit_code, #hint

Instance Method Summary collapse

Methods inherited from Error

#to_envelope

Constructor Details

#initialize(path, m, hint: nil) ⇒ BadFrontmatter

Returns a new instance of BadFrontmatter.



46
47
48
49
# File 'lib/textus/errors.rb', line 46

def initialize(path, m, hint: nil)
  hint ||= default_hint_for(path, m)
  super("bad_frontmatter", m, details: { "path" => path }, hint: hint)
end