Exception: BetterTranslate::YamlError

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

Overview

Raised when YAML parsing fails

Examples:

YAML syntax error

raise YamlError.new(
  "Invalid YAML syntax",
  context: { file_path: "config/locales/en.yml", line: 5 }
)

Instance Attribute Summary

Attributes inherited from Error

#context

Method Summary

Methods inherited from Error

#initialize

Constructor Details

This class inherits a constructor from BetterTranslate::Error