Database Error Messages

Can I access the error message returned from the database, in this
case PostgreSQL? I know I should do all validation in the model, but
stuff happens…

Thanks!

  • Ian