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

Method __str__

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

Source from the content-addressed store, hash-verified

166 """Base class for all Postgres errors."""
167
168 def __str__(self):
169 msg = self.args[0]
170 if self.detail:
171 msg += '\nDETAIL: {}'.format(self.detail)
172 if self.hint:
173 msg += '\nHINT: {}'.format(self.hint)
174
175 return msg
176
177 @classmethod
178 def new(cls, fields, query=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected