Exception: Textus::BadContent

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) ⇒ BadContent

Returns a new instance of BadContent.



65
66
67
68
69
70
71
# File 'lib/textus/errors.rb', line 65

def initialize(path, m)
  super(
    "bad_content", m,
    details: { "path" => path },
    hint: "JSON/YAML parse failed; run the file through 'jq .' or 'yq .' to find the syntax error",
  )
end