public function error(): array
{ // oci_error() returns an array that already contains
// 'code' and 'message' keys, but it can return false
// if there was no error ....
$error =
oci_error();
$resources =
[$this->cursorId,
$this->stmtId,
$this->connID
];
foreach ($resources as $resource) { if (is_resource($resource)) { $error =
oci_error($resource);
break;
} } return is_array($error) ?
$error :