{ Error: [Informix][Informix ODBC Driver][Informix]Unique constraint (informix.u100_2) violated.
errors: [],
error: '[node-ifxnjs] SQL_ERROR',
message: '[Informix][Informix ODBC Driver][Informix]Unique constraint (informix.u100_2) violated.',
state: '23000' }
Maybe an error structure like this would be more useful
{
type: SQL, //presume you might want to differentiate between server error and driver error ? else this might not be needed either
code: -1234,
message: '[Informix][Informix ODBC Driver][Informix]Unique constraint (informix.u100_2) violated.',
state: '23000'
}
{ Error: [Informix][Informix ODBC Driver][Informix]Unique constraint (informix.u100_2) violated.
errors: [],
error: '[node-ifxnjs] SQL_ERROR',
message: '[Informix][Informix ODBC Driver][Informix]Unique constraint (informix.u100_2) violated.',
state: '23000' }
Maybe an error structure like this would be more useful
{
type: SQL, //presume you might want to differentiate between server error and driver error ? else this might not be needed either
code: -1234,
message: '[Informix][Informix ODBC Driver][Informix]Unique constraint (informix.u100_2) violated.',
state: '23000'
}