X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=src%2FDatabase%2FDatabaseException.php;h=8c99b9a7ef4a59a26d8af46c4df2ecc6ef29e146;hb=7e030720829036ab76eef4ab91f695710ce4bb11;hp=8d9c2792cc4d10dbc99c92caa5de073c6c809da3;hpb=a42a5307e23a9fb7e4de170034e9294f2586020f;p=friendica.git diff --git a/src/Database/DatabaseException.php b/src/Database/DatabaseException.php index 8d9c2792cc..8c99b9a7ef 100644 --- a/src/Database/DatabaseException.php +++ b/src/Database/DatabaseException.php @@ -1,6 +1,6 @@ query = $query; } /** - * {@inheritDoc} + * Returns the query, which caused the exception + * + * @return string */ - public function __toString() + public function getQuery(): string { - return sprintf('Database error %d "%s" at "%s"', $this->message, $this->code, $this->query); + return $this->query; } }