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 __init__(
      self, message: str, ctx: t.Optional["Context"] = None
  ) -> None:
      super().__init__(message)
      self.ctx = ctx
      self.cmd: t.Optional["Command"] = (
          self.ctx.command if self.ctx else None
      )
  
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 UsageError object from inherited base classes: ClickException with example: obj = UsageError(message, ctx)