Exception: BetterTranslate::FileError

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

Overview

Raised when file operations fail

Examples:

File read error

raise FileError.new(
  "Cannot read file",
  context: { file_path: "config/locales/en.yml", error: "Permission denied" }
)

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