getCode()) { case '42S02': return self::createTableViewException($e); default: return $e; } } /** * Create table exception. * * @param \PDOException $e Exception * * @return \PDOException * * @since 1.0.0 */ private static function createTableViewException(\PDOException $e) : \PDOException { return new TableException(TableException::findTable($e->getMessage())); } }