mirror of
https://github.com/danog/postgres.git
synced 2024-12-15 10:57:22 +01:00
18 lines
422 B
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;
|
|
}
|
|
}
|