/** * @param PDOException $exception * @param null|string $SSQL * @return bool */ public function catchException(PDOException $exception, $SSQL = null) { Debug::catchException($exception, $SSQL); }
private function checkNotNulls() { if ($this->objPDO->getAttribute(PDO::ATTR_ERRMODE) != PDO::ERRMODE_EXCEPTION) { foreach ($this->arModifiedFields as $Key => $V) { $NotNull = isset($this->arRules[$Key]) && is_array($this->arRules[$Key]) ? $this->arRules[$Key][1] : false; if ($NotNull && is_null($this->{$Key})) { $Message = "Field '{$Key}' can not be null"; if (!Debug::inDebug()) { SystemMessage::addMessage('_system', SystemMessage::MSG_WARNING, $Message, false); } throw new PDOException($Message); } } } }