Пример #1
0
 /**
  * Handles Exceptions. Suppresses exceptions caused by missing structures.
  *
  * @param Exception $exception
  *
  * @return void
  *
  * @throws Exception
  */
 private function handleException(Exception $exception)
 {
     if (!$this->writer->sqlStateIn($exception->getSQLState(), array(RedBean_QueryWriter::C_SQLSTATE_NO_SUCH_TABLE, RedBean_QueryWriter::C_SQLSTATE_NO_SUCH_COLUMN))) {
         throw $exception;
     }
 }
Пример #2
0
 /**
  * Handles exceptions. Suppresses exceptions caused by missing structures.
  *
  * @param Exception $exception exception to handle
  *
  * @return void
  */
 private function handleException(\Exception $exception)
 {
     if ($this->oodb->isFrozen() || !$this->writer->sqlStateIn($exception->getSQLState(), array(QueryWriter::C_SQLSTATE_NO_SUCH_TABLE, QueryWriter::C_SQLSTATE_NO_SUCH_COLUMN))) {
         throw $exception;
     }
 }
Пример #3
0
 /**
  * Handles exceptions. Suppresses exceptions caused by missing structures.
  *
  * @param Exception $exception exception
  *
  * @return void
  */
 protected function handleException(\Exception $exception)
 {
     if (!$this->writer->sqlStateIn($exception->getSQLState(), array(QueryWriter::C_SQLSTATE_NO_SUCH_TABLE, QueryWriter::C_SQLSTATE_NO_SUCH_COLUMN))) {
         throw $exception;
     }
 }