StormByte-Config 3.0.0
C++26 configuration-document module of the StormByte suite
Loading...
Searching...
No Matches
StormByte::Config::ItemNotFound Class Referencefinal

Thrown when an item cannot be found by its path or name. More...

#include <StormByte/config/exception.hxx>

Inheritance diagram for StormByte::Config::ItemNotFound:
Collaboration diagram for StormByte::Config::ItemNotFound:

Public Member Functions

 ~ItemNotFound () noexcept override
 Destructor.
template<typename... Args>
requires (sizeof...(Args) >= 1)
 Exception (std::string_view pattern, Args &&... args)
 Replace literal {} under StormByte.Config.
 Exception (std::string_view message)
 Format a plain message under StormByte.Config.
 Exception (Path path, std::string_view message)
 Plain message under an additional Config path.
 Exception (const Exception &other)=default
 Copy constructor.
 Exception (Exception &&other) noexcept=default
 Move constructor.
Public Member Functions inherited from StormByte::Config::Exception
template<typename... Args>
requires (sizeof...(Args) >= 1)
 Exception (std::string_view pattern, Args &&... args)
 Replace literal {} under StormByte.Config.
 Exception (std::string_view message)
 Format a plain message under StormByte.Config.
 Exception (Path path, std::string_view message)
 Plain message under an additional Config path.
 Exception (const Exception &other)=default
 Copy constructor.
 Exception (Exception &&other) noexcept=default
 Move constructor.
 ~Exception () noexcept override
 Destructor.
Exception & operator= (const Exception &other)=default
 Copy assignment operator.
Exception & operator= (Exception &&other) noexcept=default
 Move assignment operator.
Public Member Functions inherited from StormByte::Exception
 Exception (std::string_view message)
 Exception (const Exception &other)
 Exception (Exception &&other) noexcept
Exception & operator= (const Exception &other)
Exception & operator= (Exception &&other) noexcept
virtual const char * what () const noexcept

Additional Inherited Members

Protected Member Functions inherited from StormByte::Exception
 Exception () noexcept
 Exception (Path path, std::string_view message)
 Exception (Path path, Safe::String &&message)
 Exception (Path path, std::string_view pattern, Args &&... args)

Detailed Description

Thrown when an item cannot be found by its path or name.

Constructor & Destructor Documentation

◆ ~ItemNotFound()

StormByte::Config::ItemNotFound::~ItemNotFound ( )
overridenoexcept

Destructor.

Defined in this module so catch matches across a DLL.

Member Function Documentation

◆ Exception() [1/5]

StormByte::Config::Exception::Exception ( const Exception & other)
default

Copy constructor.

Parameters
otherException to copy.

◆ Exception() [2/5]

StormByte::Config::Exception::Exception ( Exception && other)
defaultnoexcept

Move constructor.

Parameters
otherException to move.

◆ Exception() [3/5]

StormByte::Config::Exception::Exception ( Path path,
std::string_view message )

Plain message under an additional Config path.

Parameters
pathAdditional segments nested below StormByte.Config.
messageException text. Not a format string.

◆ Exception() [4/5]

StormByte::Config::Exception::Exception ( std::string_view message)
explicit

Format a plain message under StormByte.Config.

Parameters
messageException text. Not a format string.

◆ Exception() [5/5]

template<typename... Args>
requires (sizeof...(Args) >= 1)
StormByte::Config::Exception::Exception ( std::string_view pattern,
Args &&... args )
inline

Replace literal {} under StormByte.Config.

Template Parameters
ArgsViews, or numbers. A number is converted with std::to_string.
Parameters
patternBody with literal {} tokens. Not a std::format string.
argsReplacements. One per token, in order.

The documentation for this class was generated from the following file: