Class: PGError

Class | PGError
In: | ext/pg.c
Parent: | StandardError

This is the exception class raised when an error is returned from a libpq API call.

The attributes `connection` and `result` are set to the connection object and result set object, respectively.

If the connection object or result set object is not available from the context in which the error was encountered, it is `nil`.

### External Aliases

message | -> | error

### Attributes

connection | [R] |
result | [R] |

[Validate]