Reyansh Reyansh - 1 month ago 6
Node.js Question

Is there any way to find the database error codes for Bookshelf.js ? Iam using postgreSQL + ember.js + bookshelf.js

How to know the error codes for Bookshelf.js? so that i can handle any type of error ? Iam using ember.js too in my project (node.js+ember.js+bookshelf.js)

Answer

Bookshelf and the postgres driver will mostly just surface the errors generated within postgresql itself, which you can find listed here (for PostgreSQL 9.6).