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

Deserialization failed. More...

#include <StormByte/exception.hxx>

Inheritance diagram for StormByte::DeserializeError:
Collaboration diagram for StormByte::DeserializeError:

Public Member Functions

 DeserializeError (std::string_view message)
 Copy a body into StormByte: message.
template<typename... Args>
requires (sizeof...(Args) >= 1)
 DeserializeError (std::string_view pattern, Args &&... args)
 Replace literal {} in pattern.
 DeserializeError (const DeserializeError &other)
 Copy constructor.
 DeserializeError (DeserializeError &&other) noexcept
 Move constructor.
 ~DeserializeError () noexcept override
 Destructor.
DeserializeError & operator= (const DeserializeError &other)
 Copy assignment.
DeserializeError & operator= (DeserializeError &&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

Deserialization failed.

Leaf of the root: StormByte: ….

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

Constructor & Destructor Documentation

◆ DeserializeError() [1/4]

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

Copy a body into StormByte: message.

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

◆ DeserializeError() [2/4]

template<typename... Args>
requires (sizeof...(Args) >= 1)
StormByte::DeserializeError::DeserializeError ( 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.

◆ DeserializeError() [3/4]

StormByte::DeserializeError::DeserializeError ( const DeserializeError & other)

Copy constructor.

Defined in the Base DLL.

Parameters
otherException to copy.

◆ DeserializeError() [4/4]

StormByte::DeserializeError::DeserializeError ( DeserializeError && other)
noexcept

Move constructor.

Defined in the Base DLL.

Parameters
otherException to take.

◆ ~DeserializeError()

StormByte::DeserializeError::~DeserializeError ( )
overridenoexcept

Destructor.

Defined in the Base DLL so catch matches across modules.

Member Function Documentation

◆ operator=() [1/2]

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

Copy assignment.

Defined in the Base DLL.

Parameters
otherException to copy.
Returns
This exception.

◆ operator=() [2/2]

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

Move assignment.

Defined in the Base DLL.

Parameters
otherException to take.
Returns
This exception.

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