pgerror 0.1.0

This Release
pgerror 0.1.0
Date
Status
Stable
Latest Stable
pgerror 0.2.1 —
Other Releases
Abstract
Tools for better error handling
Description
Includes error_data, a type for passing error details around, and a try function that will return error details to the caller
Released By
decibel
License
MIT
Resources
Special Files
Tags

Extensions

pgerror 0.1.0
Tools for better error handling

README

error_data

This is a compound type that can be passed around or stored in a table. It contains fields that correspond to every available detail for an exception.

try()

This function will execute the SQL in the code parameter and return the number of rows affected (NULL on an error), or an error_data record if an error occurred (NULL if no error).

Copyright and License

pgerror is released under a MIT liscense.

Copyright (c) 2016 Jim Nasby <Jim.Nasby@BlueTreble.com>.