Add and use specific errors for type and cast exceptions
Use for disabled test cases
merge nathanlws: Add specific errors for type and cast exceptions

Merge pull request #1582 from nathanlws/sql-layer/explicit-type-cast-errors
https://github.com/FoundationDB/sql-layer/pull/1582