1
0
mirror of https://github.com/danog/postgres.git synced 2024-12-12 09:29:57 +01:00
postgres/lib/QueryExecutionError.php

18 lines
422 B
PHP

<?php
namespace Amp\Postgres;
class QueryExecutionError extends QueryError {
/** @var mixed[] */
private $diagnostics;
public function __construct(string $message, array $diagnostics, \Throwable $previous = null) {
parent::__construct($message, 0, $previous);
$this->diagnostics = $diagnostics;
}
public function getDiagnostics(): array {
return $this->diagnostics;
}
}