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

Thrown when an invalid name is used for an item. More...

#include <StormByte/config/exception.hxx>

Inheritance diagram for StormByte::Config::InvalidName:
Collaboration diagram for StormByte::Config::InvalidName:

Public Member Functions

 ~InvalidName () noexcept override
 Destructor.
 
template<typename... Args>
 Exception (std::format_string< Args... > fmt, Args &&... args)
 Format under StormByte.Config.
 
 Exception (std::string message)
 Format a plain message under StormByte.Config.
 
 Exception (std::string_view path, std::string message)
 Plain message under an explicit 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>
 Exception (std::format_string< Args... > fmt, Args &&... args)
 Format under StormByte.Config.
 
 Exception (std::string message)
 Format a plain message under StormByte.Config.
 
 Exception (std::string_view path, std::string message)
 Plain message under an explicit 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 (const std::string &message)
 
 Exception (std::string &&message)
 
 Exception (std::format_string< Args... > fmt, Args &&... args)
 
 Exception (const Exception &e)=default
 
 Exception (Exception &&e) noexcept=default
 
Exception & operator= (const Exception &e)=default
 
Exception & operator= (Exception &&e) noexcept=default
 
virtual const char * what () const noexcept
 

Additional Inherited Members

- Protected Member Functions inherited from StormByte::Exception
 Exception (Path path, std::format_string< Args... > fmt, Args &&... args)
 

Detailed Description

Thrown when an invalid name is used for an item.

Constructor & Destructor Documentation

◆ ~InvalidName()

StormByte::Config::InvalidName::~InvalidName ( )
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]

template<typename... Args>
StormByte::Config::Exception::Exception ( std::format_string< Args... >  fmt,
Args &&...  args 
)
inlineexplicit

Format under StormByte.Config.

Template Parameters
ArgsFormat argument types.
Parameters
fmtFormat string.
argsFormat arguments.

◆ Exception() [4/5]

StormByte::Config::Exception::Exception ( std::string  message)
inlineexplicit

Format a plain message under StormByte.Config.

Parameters
messageException text. Not a format string.

◆ Exception() [5/5]

StormByte::Config::Exception::Exception ( std::string_view  path,
std::string  message 
)
inline

Plain message under an explicit path.

Parameters
pathSegments under StormByte. Not a format string.
messageException text. Not a format string.

StormByte::Exception::Path is protected, so callers pass the segments as a view. The view only needs to live for this call.


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