If an ODBC operation signals an error, it throws the exception
error(. The
arguments of the odbc(State, Native, Message), _)odbc/3 term are explained in section
2.8.1.
In addition, the Prolog layer performs the normal tests for proper arguments and state, signaling the conventional instantiation, type, domain and resource exceptions.