class_docstr: Raised if a file cannot be opened.
class_docstr_tok: ["Raised","if","a","file","can","not","be","opened","."]
code: def __init__(
      self, filename: str, hint: t.Optional[str] = None
  ) -> None:
      if hint is None:
          hint = _("unknown error")
  
      super().__init__(hint)
      self.ui_filename: str = format_filename(filename)
      self.filename = filename
  
imports: import typing
  from gettext import gettext
  from gettext import ngettext
  from ._compat import get_text_stderr
  from .utils import echo
  from .utils import format_filename
label_desc: Use image node_id 1 to create a new FileError object from inherited base classes: ClickException with example: obj = FileError(filename, hint)