class_docstr: An internal exception that signals a usage error.  This typically
  aborts any further handling.
  
  :param message: the error message to display.
  :param ctx: optionally the context that caused this error.  Click will
              fill in the context automatically in some situations.
class_docstr_tok: ["An","internal","exception","that","signals","a","usage","error",".","This","typically","aborts","any","further","handling",".",":","param","message",":","the","error","message","to","display",".",":","param","ctx",":","optionally","the","context","that","caused","this","error",".","Click","will","fill","in","the","context","automatically","in","some","situations","."]
code: def show(self, file: t.Optional[t.IO[t.Any]] = None) -> None:
      if file is None:
          file = get_text_stderr()
      color = None
      hint = ""
      if (
          self.ctx is not None
          and self.ctx.command.get_help_option(self.ctx) is not None
      ):
          hint = _("Try '{command} {option}' for help.").format(
              command=self.ctx.command_path,
              option=self.ctx.help_option_names[0],
          )
          hint = f"{hint}\n"
      if self.ctx is not None:
          color = self.ctx.color
          echo(
              f"{self.ctx.get_usage()}\n{hint}", file=file, color=color
          )
      echo(
          _("Error: {message}").format(message=self.format_message()),
          file=file,
          color=color,
      )
  
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 2 for calling the UsageError obj's underlying member method code with example usage: obj.show(file) without return types