oPDOErr = $oPDOErr; $this->sSql = $sSql; } public function __toString() { return __CLASS__ . ": [{$this->code}]: {$this->message}\n"; } public function getSqlError() { return $this->oPDOErr->getMessage(); } public function getSqlDebugDump() { if (CONST_Debug) { return var_export($this->oPDOErr, true); } else { return $this->sSql; } } }