RedBeanPHP\Repository\Fluid::handleException PHP Method

handleException() protected method

Handles exceptions. Suppresses exceptions caused by missing structures.
protected handleException ( Exception $exception ) : void
$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;
        }
    }