Example #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;
     }
 }
 /**
  * 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;
     }
 }
Example #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;
     }
 }