(self)
| 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): |
nothing calls this directly
no outgoing calls
no test coverage detected