Wrap lower level exceptions correctly when checking constraint and indexes. Changed error messages to reflect context.
apa