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

Method new

asyncpg/exceptions/_base.py:178–182  ·  view source on GitHub ↗
(cls, fields, query=None)

Source from the content-addressed store, hash-verified

176
177 @classmethod
178 def new(cls, fields, query=None):
179 exccls, message, dct = cls._make_constructor(fields, query)
180 ex = exccls(message)
181 ex.__dict__.update(dct)
182 return ex
183
184
185class FatalPostgresError(PostgresError):

Callers 1

_process_log_messageMethod · 0.45

Calls 1

_make_constructorMethod · 0.80

Tested by

no test coverage detected