403Webshell
Server IP : 192.158.238.246  /  Your IP : 3.148.192.125
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/7779/task/7779/cwd/plugins/give/src/Framework/Database/Exceptions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/7779/task/7779/cwd/plugins/give/src/Framework/Database/Exceptions/DatabaseQueryException.php
<?php

namespace Give\Framework\Database\Exceptions;

use Give\Framework\Exceptions\Primitives\Exception;
use Throwable;

/**
 * Class DatabaseQueryException
 *
 * An exception for when errors occurred within the database while performing a query, which stores the SQL errors the
 * database returned
 *
 * @since 2.21.0 Use the GiveWP exception class
 * @since 2.9.2
 */
class DatabaseQueryException extends Exception
{
    /**
     * @var string[]
     */
    private $queryErrors;

    /**
     * @var string
     */
    private $query;

    /**
     * @since 2.21.0 include query and query errors, and make auto-logging compatible
     * @since 2.9.2
     */
    public function __construct(
        string $query,
        array $queryErrors,
        string $message = 'Database Query',
        $code = 0,
        Throwable $previous = null
    ) {
        $this->query = $query;
        $this->queryErrors = $queryErrors;

        parent::__construct($message, $code, $previous);
    }

    /**
     * Returns the query errors
     *
     * @since 2.9.2
     *
     * @return string[]
     */
    public function getQueryErrors(): array
    {
        return $this->queryErrors;
    }

    public function getQuery(): string
    {
        return $this->query;
    }

    /**
     * @inheritDoc
     */
    public function getLogContext(): array
    {
        return [
            'category' => 'Uncaught database exception',
            'Query' => $this->query,
            'Query Errors' => $this->queryErrors,
        ];
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit