StormByte-Database 3.0.0
C++26 database module of the StormByte suite
Loading...
Searching...
No Matches
StormByte::Database::OutOfBounds Class Reference

Column index out of range. More...

#include <StormByte/database/exception.hxx>

Inheritance diagram for StormByte::Database::OutOfBounds:
Collaboration diagram for StormByte::Database::OutOfBounds:

Public Member Functions

 OutOfBounds (StormByte::Size pos, StormByte::Size size)
 Construct from index and size.
 OutOfBounds (const OutOfBounds &other)=default
 Copy constructor.
 OutOfBounds (OutOfBounds &&other) noexcept=default
 Move constructor.
 ~OutOfBounds () noexcept override
 Destructor.
OutOfBounds & operator= (const OutOfBounds &other)=default
 Copy assignment operator.
OutOfBounds & operator= (OutOfBounds &&other) noexcept=default
 Move assignment operator.
Public Member Functions inherited from StormByte::Database::Exception
template<typename... Args>
requires (sizeof...(Args) >= 1)
 Exception (std::string_view pattern, Args &&... args)
 Replace literal {} under StormByte.Database.
 Exception (std::string_view message)
 Copy a plain message under StormByte.Database.
 Exception (Path path, std::string_view message)
 Plain message under an additional Database path.
template<typename... Args>
requires (sizeof...(Args) >= 1)
 Exception (Path path, std::string_view pattern, Args &&... args)
 Replace literal {} under an additional Database 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 (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::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)
Static Protected Member Functions inherited from StormByte::Database::Exception
static StormByte::Safe::String Segment (std::string_view prefix, std::string_view component)
 Join a fixed prefix and a dynamic segment.

Detailed Description

Column index out of range.

what() is StormByte.Database.OutOfBounds: Position <n> is out of bounds for size <n>.

Constructor & Destructor Documentation

◆ OutOfBounds() [1/3]

StormByte::Database::OutOfBounds::OutOfBounds ( StormByte::Size pos,
StormByte::Size size )

Construct from index and size.

Parameters
posRequested index.
sizeContainer size.

◆ OutOfBounds() [2/3]

StormByte::Database::OutOfBounds::OutOfBounds ( const OutOfBounds & other)
default

Copy constructor.

Parameters
otherException to copy.

◆ OutOfBounds() [3/3]

StormByte::Database::OutOfBounds::OutOfBounds ( OutOfBounds && other)
defaultnoexcept

Move constructor.

Parameters
otherException to move.

◆ ~OutOfBounds()

StormByte::Database::OutOfBounds::~OutOfBounds ( )
overridenoexcept

Destructor.

Defined in this module so catch matches across a DLL.

Member Function Documentation

◆ operator=() [1/2]

OutOfBounds & StormByte::Database::OutOfBounds::operator= ( const OutOfBounds & other)
default

Copy assignment operator.

Parameters
otherException to copy.
Returns
This exception.

◆ operator=() [2/2]

OutOfBounds & StormByte::Database::OutOfBounds::operator= ( OutOfBounds && other)
defaultnoexcept

Move assignment operator.

Parameters
otherException to move.
Returns
This exception.

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