MCPcopy Index your code
hub / github.com/MagicStack/asyncpg / _get_error_class

Method _get_error_class

asyncpg/exceptions/_base.py:81–83  ·  view source on GitHub ↗
(cls, fields)

Source from the content-addressed store, hash-verified

79
80 @classmethod
81 def _get_error_class(cls, fields):
82 sqlstate = fields.get('C')
83 return type(cls).get_message_class_for_sqlstate(sqlstate)
84
85 @classmethod
86 def _get_error_dict(cls, fields, query):

Callers 1

_make_constructorMethod · 0.80

Calls 2

getMethod · 0.80

Tested by

no test coverage detected