1
0
mirror of https://github.com/danog/postgres.git synced 2024-11-30 04:29:12 +01:00
postgres/lib/PendingOperationError.php
Aaron Piotrowski e0a842bad7 Disallow multiple operations on single connection
Pools can still be used for concurrent ops.
2017-05-26 13:14:04 -05:00

13 lines
331 B
PHP

<?php
namespace Amp\Postgres;
class PendingOperationError extends \Error {
public function __construct(
string $message = "The previous operation must complete before starting another",
int $code = 0,
\Throwable $previous = null
) {
parent::__construct($message, $code, $previous);
}
}