Files
testcontainers-php/src/Exception/ContainerWaitingTimeoutException.php
T
2024-09-29 18:50:39 +02:00

15 lines
426 B
PHP

<?php
declare(strict_types=1);
namespace Testcontainers\Exception;
class ContainerWaitingTimeoutException extends ContainerNotReadyException
{
public function __construct(string $containerId, ?string $message = null, ?\Throwable $previous = null)
{
$message ??= sprintf('Timeout reached while waiting for container %s', $containerId);
parent::__construct($message, $containerId, $previous);
}
}