RedBeanPHP\AssociationManager::handleException PHP Method

handleException() private method

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