/** * @param string $repoTag */ public function __construct($repoTag) { parent::__construct(sprintf('Invalid repoTag: %s', $repoTag)); }
/** * @param integer $statusCode * @param string $message */ public function __construct($statusCode, $message = null) { $message = $message ?: 'Status Code: ' . $statusCode; parent::__construct($message, (int) $statusCode); }
/** * @param integer $port * @param string $protocol */ public function __construct($port, $protocol) { parent::__construct(sprintf('Port not found: %d/%s', $port, $protocol)); }
/** * @param string $imageId * @param null|Exception $previous */ public function __construct($imageId, Exception $previous = null) { parent::__construct(sprintf('Image not found: "%s"', $imageId), 404, $previous); }
/** * @param string $containerId * @param null|Exception $previous */ public function __construct($containerId, Exception $previous = null) { parent::__construct(sprintf('Container not found: "%s"', $containerId), 404, $previous); }