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

Base64 encode or decode failed. More...

#include <StormByte/exception.hxx>

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

Public Member Functions

 Base64Error (std::string_view message)
 Copy a body into StormByte: message.
template<typename... Args>
requires (sizeof...(Args) >= 1)
 Base64Error (std::string_view pattern, Args &&... args)
 Replace literal {} in pattern.
 Base64Error (const Base64Error &other)
 Copy constructor.
 Base64Error (Base64Error &&other) noexcept
 Move constructor.
 ~Base64Error () noexcept override
 Destructor.
Base64Error & operator= (const Base64Error &other)
 Copy assignment.
Base64Error & operator= (Base64Error &&other) noexcept
 Move assignment.
Public Member Functions inherited from StormByte::Exception
 Exception (std::string_view message)
 Copies text into StormByte: message.
 Exception (const Exception &other)
 Copy constructor.
 Exception (Exception &&other) noexcept
 Move constructor.
virtual ~Exception () noexcept
 Destructor.
Exception & operator= (const Exception &other)
 Copy assignment.
Exception & operator= (Exception &&other) noexcept
 Move assignment.
virtual const char * what () const noexcept
 Message pointer.

Additional Inherited Members

Protected Member Functions inherited from StormByte::Exception
 Exception () noexcept
 Construct without allocating message storage.
 Exception (Path path, std::string_view message)
 Stores StormByte.path: message, or StormByte: message when path is empty.
 Exception (Path path, Safe::String &&message)
 Stores StormByte.path: message, taking the body.
template<typename... Args>
requires (sizeof...(Args) >= 1)
 Exception (Path path, std::string_view pattern, Args &&... args)
 Stores StormByte.path: message after replacing literal {}.

Detailed Description

Base64 encode or decode failed.

Leaf of the root: StormByte: ….

The message is the body only. No extra path segment is added.

Constructor & Destructor Documentation

◆ Base64Error() [1/4]

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

Copy a body into StormByte: message.

Parameters
messageBody. Not a path and not a format string.

◆ Base64Error() [2/4]

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

Replace literal {} in pattern.

Template Parameters
ArgsViews, numbers, or types that convert to std::string. A number uses std::to_string.
Parameters
patternBody with literal {} tokens.
argsReplacements. One per token, in order.

◆ Base64Error() [3/4]

StormByte::Base64Error::Base64Error ( const Base64Error & other)

Copy constructor.

Defined in the Base DLL.

Parameters
otherException to copy.

◆ Base64Error() [4/4]

StormByte::Base64Error::Base64Error ( Base64Error && other)
noexcept

Move constructor.

Defined in the Base DLL.

Parameters
otherException to take.

◆ ~Base64Error()

StormByte::Base64Error::~Base64Error ( )
overridenoexcept

Destructor.

Defined in the Base DLL so catch matches across modules.

Member Function Documentation

◆ operator=() [1/2]

Base64Error & StormByte::Base64Error::operator= ( Base64Error && other)
noexcept

Move assignment.

Defined in the Base DLL.

Parameters
otherException to take.
Returns
This exception.

◆ operator=() [2/2]

Base64Error & StormByte::Base64Error::operator= ( const Base64Error & other)

Copy assignment.

Defined in the Base DLL.

Parameters
otherException to copy.
Returns
This exception.

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