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

The daemon replied 404: the referenced resource does not exist. More...

#include <testcontainers/Error.hpp>

Inheritance diagram for testcontainers::NotFoundError:
testcontainers::DockerError testcontainers::Error

Public Member Functions

 NotFoundError (const std::string &what, std::string resource_id={})
Public Member Functions inherited from testcontainers::DockerError
 DockerError (const std::string &what)
 DockerError (const std::string &what, std::optional< int > status_code, std::string resource_id={})
std::optional< int > status_code () const noexcept
const std::string & resource_id () const noexcept

Detailed Description

The daemon replied 404: the referenced resource does not exist.

status_code() is always 404. Caveat for image pulls: the registry deliberately answers "not found" for private images requested without credentials, so a pull NotFoundError can also mean "authentication required".

Constructor & Destructor Documentation

◆ NotFoundError()

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