MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / __str__

Method __str__

asyncpg/exceptions/_base.py:198–205  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

196 self.hint = hint
197
198 def __str__(self):
199 msg = self.args[0]
200 if self.detail:
201 msg += '\nDETAIL: {}'.format(self.detail)
202 if self.hint:
203 msg += '\nHINT: {}'.format(self.hint)
204
205 return msg
206
207
208class InterfaceError(InterfaceMessage, Exception):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected