yii\sphinx\Schema::convertException PHP Метод

convertException() публичный Метод

Converts a DB exception to a more concrete one if possible.
public convertException ( Exception $e, string $rawSql ) : Exception
$e Exception
$rawSql string SQL that produced exception
Результат yii\db\Exception
    public function convertException(\Exception $e, $rawSql)
    {
        if ($e instanceof Exception) {
            return $e;
        }
        $message = $e->getMessage() . "\nThe SQL being executed was: {$rawSql}";
        $errorInfo = $e instanceof \PDOException ? $e->errorInfo : null;
        return new Exception($message, $errorInfo, (int) $e->getCode(), $e);
    }