mirror of
https://github.com/stan220/testcontainers-php.git
synced 2026-09-10 18:29:38 +00:00
refactored WaitForHealthCheck strategy and added more granular exceptions
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Testcontainers\Exception;
|
||||
|
||||
class ContainerException extends \RuntimeException
|
||||
{
|
||||
protected string $containerId;
|
||||
|
||||
public function __construct(string $message, string $containerId = '', ?\Throwable $previous = null)
|
||||
{
|
||||
$this->containerId = $containerId;
|
||||
parent::__construct($message, 0, $previous);
|
||||
}
|
||||
|
||||
public function getContainerId(): string
|
||||
{
|
||||
return $this->containerId;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user