MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _code_str

Method _code_str

lib/sqlalchemy/exc.py:57–64  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

55 _what_are_we = "error"
56
57 def _code_str(self) -> str:
58 if not self.code:
59 return ""
60 else:
61 return (
62 f"(Background on this {self._what_are_we} at: "
63 f"https://sqlalche.me/e/{_version_token}/{self.code})"
64 )
65
66 def __str__(self) -> str:
67 message = super().__str__()

Callers 3

__str__Method · 0.95
_sql_messageMethod · 0.80
_sql_messageMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected