StormByte 2.0.0
C++26 foundation of the StormByte suite
 
Loading...
Searching...
No Matches
StormByte::Base64Error Class Reference

Thrown when Base64 encode or decode fails. More...

#include <StormByte/exception.hxx>

Inheritance diagram for StormByte::Base64Error:
Collaboration diagram for StormByte::Base64Error:

Public Member Functions

 ~Base64Error () noexcept override
 Destructor.
 
 Exception (std::string_view message)
 Copies text into StormByte: message.
 
 Exception (const Safe::String &message)
 Copies owned text into StormByte: message.
 
template<typename... Args>
 Exception (std::format_string< Args... > fmt, Args &&... args)
 Constructs with std::format.
 
 Exception (const Exception &e)=default
 Copy constructor.
 
 Exception (Exception &&e) noexcept=default
 Move constructor.
 
template<typename... Args>
 Exception (Path path, std::format_string< Args... > fmt, Args &&... args)
 Stores StormByte.path: message, or StormByte: message when path is empty.
 
- Public Member Functions inherited from StormByte::Exception
 Exception (std::string_view message)
 Copies text into StormByte: message.
 
 Exception (const Safe::String &message)
 Copies owned text into StormByte: message.
 
template<typename... Args>
 Exception (std::format_string< Args... > fmt, Args &&... args)
 Constructs with std::format.
 
 Exception (const Exception &e)=default
 Copy constructor.
 
 Exception (Exception &&e) noexcept=default
 Move constructor.
 
virtual ~Exception () noexcept
 Destructor.
 
Exception & operator= (const Exception &e)=default
 Copy assignment.
 
Exception & operator= (Exception &&e) noexcept=default
 Move assignment.
 
virtual const char * what () const noexcept
 Message pointer.
 

Additional Inherited Members

- Protected Member Functions inherited from StormByte::Exception
template<typename... Args>
 Exception (Path path, std::format_string< Args... > fmt, Args &&... args)
 Stores StormByte.path: message, or StormByte: message when path is empty.
 

Detailed Description

Thrown when Base64 encode or decode fails.

Leaf of the root: StormByte: ….

Constructor & Destructor Documentation

◆ ~Base64Error()

StormByte::Base64Error::~Base64Error ( )
overridenoexcept

Destructor.

Defined in the Base DLL so catch matches across modules.

Member Function Documentation

◆ Exception() [1/6]

StormByte::Exception::Exception ( const Exception &  e)
default

Copy constructor.

Parameters
eException to copy.

◆ Exception() [2/6]

StormByte::Exception::Exception ( const Safe::String &  message)
explicit

Copies owned text into StormByte: message.

Parameters
messageException text. Not a format string.

◆ Exception() [3/6]

StormByte::Exception::Exception ( Exception &&  e)
defaultnoexcept

Move constructor.

Parameters
eException to take.

◆ Exception() [4/6]

template<typename... Args>
StormByte::Exception::Exception ( Path  path,
std::format_string< Args... >  fmt,
Args &&...  args 
)
inline

Stores StormByte.path: message, or StormByte: message when path is empty.

Template Parameters
ArgsFormat argument types.
Parameters
pathSegments under StormByte.
fmtFormat string.
argsFormat arguments.
Note
With zero arguments the format string is the message as-is.

◆ Exception() [5/6]

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

Constructs with std::format.

Text is StormByte: formatted.

Template Parameters
ArgsFormat argument types.
Parameters
fmtFormat string.
argsFormat arguments.
Note
With zero arguments the format string is the message as-is.

◆ Exception() [6/6]

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

Copies text into StormByte: message.

Parameters
messageException text. Not a format string.

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