mirror of
https://github.com/stan220/testcontainers-php.git
synced 2026-09-08 19:29:39 +00:00
22 lines
467 B
PHP
22 lines
467 B
PHP
<?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;
|
|
}
|
|
}
|