StormByte-Crypto 3.1.0
C++26 cryptography module of the StormByte suite
Loading...
Searching...
No Matches
StormByte::Crypto::Random::Exception Class Reference

Invalid random request or provider failure under StormByte.Crypto.Random. More...

#include <StormByte/crypto/random/exception.hxx>

Inheritance diagram for StormByte::Crypto::Random::Exception:
Collaboration diagram for StormByte::Crypto::Random::Exception:

Public Member Functions

template<typename... Args>
requires (sizeof...(Args) >= 1)
 Exception (std::string_view pattern, Args &&... args)
 Replace literal {} in a random failure message.
 Exception (std::string_view message)
 Construct a plain random failure message.
 Exception (const Exception &other)
 Copy an exception.
 Exception (Exception &&other) noexcept
 Move an exception.
 ~Exception () noexcept override
 Destroy in this module so catches match across a DLL.
Exception & operator= (const Exception &other)
 Copy-assign an exception.
Exception & operator= (Exception &&other) noexcept
 Move-assign an exception.
Public Member Functions inherited from StormByte::Crypto::Exception
template<typename... Args>
requires (sizeof...(Args) >= 1)
 Exception (std::string_view pattern, Args &&... args)
 Replace literal {} under StormByte.Crypto.
 Exception (std::string_view message)
 Plain message under StormByte.Crypto.
 Exception (const Exception &other)
 Copy constructor.
 Exception (Exception &&other) noexcept
 Move constructor.
Exception & operator= (const Exception &other)
 Copy assignment.
Exception & operator= (Exception &&other) noexcept
 Move assignment.
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::Crypto::Exception
template<typename... Args>
requires (sizeof...(Args) >= 1)
 Exception (StormByte::Exception::Path child, std::string_view pattern, Args &&... args)
 Replace literal {} under StormByte.Crypto plus the child segment.
 Exception (StormByte::Exception::Path child, std::string_view message)
 Plain message under StormByte.Crypto plus the child segment.
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

Invalid random request or provider failure under StormByte.Crypto.Random.

Constructor & Destructor Documentation

◆ Exception() [1/4]

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

Replace literal {} in a random failure message.

Template Parameters
ArgsArguments accepted by Safe::String::ReplaceToken.
Parameters
patternMessage with literal {} tokens.
argsReplacements in order.

◆ Exception() [2/4]

StormByte::Crypto::Random::Exception::Exception ( std::string_view message)
inlineexplicit

Construct a plain random failure message.

Parameters
messageException body.

◆ Exception() [3/4]

StormByte::Crypto::Random::Exception::Exception ( const Exception & other)

Copy an exception.

Parameters
otherSource exception.

◆ Exception() [4/4]

StormByte::Crypto::Random::Exception::Exception ( Exception && other)
noexcept

Move an exception.

Parameters
otherSource exception.

◆ ~Exception()

StormByte::Crypto::Random::Exception::~Exception ( )
overridevirtualnoexcept

Destroy in this module so catches match across a DLL.

Reimplemented from StormByte::Crypto::Exception.

Member Function Documentation

◆ operator=() [1/2]

Exception & StormByte::Crypto::Random::Exception::operator= ( const Exception & other)

Copy-assign an exception.

Parameters
otherSource exception.
Returns
This exception.

◆ operator=() [2/2]

Exception & StormByte::Crypto::Random::Exception::operator= ( Exception && other)
noexcept

Move-assign an exception.

Parameters
otherSource exception.
Returns
This exception.

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