Amp\Mysql\QueryException::__construct PHP Method

__construct() public method

public __construct ( $message, $query = "", Exception $previous = null )
$previous Exception
    public function __construct($message, $query = "", \Exception $previous = null)
    {
        if ($query != "") {
            $this->query = $query;
        }
        parent::__construct($message, 0, $previous);
    }