PHP 8.3.31
Preview: QueryException.php Size: 2.08 KB
/home/getspomw/royalsquad.us/vendor/laravel/framework/src/Illuminate/Database/QueryException.php

<?php

namespace Illuminate\Database;

use Illuminate\Support\Str;
use PDOException;
use Throwable;

class QueryException extends PDOException
{
    /**
     * The database connection name.
     *
     * @var string
     */
    public $connectionName;

    /**
     * The SQL for the query.
     *
     * @var string
     */
    protected $sql;

    /**
     * The bindings for the query.
     *
     * @var array
     */
    protected $bindings;

    /**
     * Create a new query exception instance.
     *
     * @param  string  $connectionName
     * @param  string  $sql
     * @param  array  $bindings
     * @param  \Throwable  $previous
     * @return void
     */
    public function __construct($connectionName, $sql, array $bindings, Throwable $previous)
    {
        parent::__construct('', 0, $previous);

        $this->connectionName = $connectionName;
        $this->sql = $sql;
        $this->bindings = $bindings;
        $this->code = $previous->getCode();
        $this->message = $this->formatMessage($connectionName, $sql, $bindings, $previous);

        if ($previous instanceof PDOException) {
            $this->errorInfo = $previous->errorInfo;
        }
    }

    /**
     * Format the SQL error message.
     *
     * @param  string  $connectionName
     * @param  string  $sql
     * @param  array  $bindings
     * @param  \Throwable  $previous
     * @return string
     */
    protected function formatMessage($connectionName, $sql, $bindings, Throwable $previous)
    {
        return $previous->getMessage().' (Connection: '.$connectionName.', SQL: '.Str::replaceArray('?', $bindings, $sql).')';
    }

    /**
     * Get the connection name for the query.
     *
     * @return string
     */
    public function getConnectionName()
    {
        return $this->connectionName;
    }

    /**
     * Get the SQL for the query.
     *
     * @return string
     */
    public function getSql()
    {
        return $this->sql;
    }

    /**
     * Get the bindings for the query.
     *
     * @return array
     */
    public function getBindings()
    {
        return $this->bindings;
    }
}

Directory Contents

Dirs: 9 × Files: 33

Name Size Perms Modified Actions
Capsule DIR
- drwxrwxrwx 2025-09-17 06:53:01
Edit Download
Concerns DIR
- drwxrwxrwx 2025-09-17 06:53:01
Edit Download
- drwxrwxrwx 2025-09-17 06:53:00
Edit Download
Console DIR
- drwxrwxrwx 2025-09-17 06:53:01
Edit Download
Eloquent DIR
- drwxrwxrwx 2025-09-17 06:53:01
Edit Download
Events DIR
- drwxrwxrwx 2025-09-17 06:53:01
Edit Download
- drwxrwxrwx 2025-09-17 06:53:00
Edit Download
Query DIR
- drwxrwxrwx 2025-09-17 06:53:01
Edit Download
Schema DIR
- drwxrwxrwx 2025-09-17 06:53:00
Edit Download
525 B lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
1.67 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
192 B lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
41.76 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
4.16 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
1.95 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
575 B lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
13.52 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
3.19 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
1.58 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
7.75 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
114 B lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
1.09 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
4.26 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
7.89 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
769 B lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
1.05 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
124 B lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
2.53 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
6.08 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
137 B lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
745 B lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
4.39 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
2.90 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
2.08 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
2.16 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
128 B lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
129 B lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
4.63 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
5.53 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
565 B lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
3.98 KB lrw-rw-rw- 2025-09-17 06:53:00
Edit Download
107 B lrw-rw-rw- 2025-09-17 06:53:00
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).