Amp\Mysql\QueryException::__toString PHP Method

__toString() public method

public __toString ( )
    public function __toString()
    {
        if ($this->query == "") {
            return parent::__toString();
        }
        $msg = $this->message;
        $this->message .= "\nCurrent query was {$this->query}";
        $str = parent::__toString();
        $this->message = $msg;
        return $str;
    }