Error utility functions

The two functions described in this section allow you to raise error exceptions and convert error codes to their SQL state equivalent.