MCPcopy Index your code
hub / github.com/commitizen-tools/commitizen / __init__

Method __init__

commitizen/exceptions.py:55–63  ·  view source on GitHub ↗
(self, *args: str, **kwargs: Any)

Source from the content-addressed store, hash-verified

53 message: str
54
55 def __init__(self, *args: str, **kwargs: Any) -> None:
56 self.output_method = kwargs.get("output_method") or out.error
57 self.exit_code: ExitCode = self.__class__.exit_code
58 if args:
59 self.message = args[0]
60 elif hasattr(self.__class__, "message"):
61 self.message = self.__class__.message
62 else:
63 self.message = ""
64
65 def __str__(self) -> str:
66 return self.message

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected