testcontainers-cpp 0.2.0
Native C++20 Testcontainers over the Docker Engine API
Loading...
Searching...
No Matches
testcontainers::StartupTimeoutError Class Reference

A container/service did not become ready within the caller's startup / wait-strategy timeout. More...

#include <testcontainers/Error.hpp>

Inheritance diagram for testcontainers::StartupTimeoutError:
testcontainers::Error

Public Member Functions

 StartupTimeoutError (const std::string &what, std::string resource_id={})
const std::string & resource_id () const noexcept
 The container id (wait strategies) or compose service name (exposed- service probes) that failed to become ready.

Detailed Description

A container/service did not become ready within the caller's startup / wait-strategy timeout.

This is a readiness condition of the containerized application, not a Docker failure, so it derives from Error directly — catch (const DockerError&) does NOT catch it.

Constructor & Destructor Documentation

◆ StartupTimeoutError()

testcontainers::StartupTimeoutError::StartupTimeoutError ( const std::string & what,
std::string resource_id = {} )
inlineexplicit

Member Function Documentation

◆ resource_id()

const std::string & testcontainers::StartupTimeoutError::resource_id ( ) const
inlinenoexcept

The container id (wait strategies) or compose service name (exposed- service probes) that failed to become ready.