Exception: Textus::BadFrontmatter

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

Instance Attribute Summary

Attributes inherited from Error

#code

Instance Method Summary collapse

Methods inherited from Error

#details, #exit_code, #hint, #to_envelope

Constructor Details

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

Returns a new instance of BadFrontmatter.



54
55
56
57
# File 'lib/textus/errors.rb', line 54

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