Exception: Textus::BadContent
- Defined in:
- lib/textus/errors.rb
Instance Attribute Summary
Attributes inherited from Error
#code, #details, #exit_code, #hint
Instance Method Summary collapse
-
#initialize(path, m) ⇒ BadContent
constructor
A new instance of BadContent.
Methods inherited from Error
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 |