R-Type  2
Doom but in better
Loading...
Searching...
No Matches
CustomExceptions::InvalidIndex Class Reference

This is the class in charge of informing the user that the index they provided is invalid. More...

#include <Invalid.hpp>

Inheritance diagram for CustomExceptions::InvalidIndex:
Inheritance graph
Collaboration diagram for CustomExceptions::InvalidIndex:
Collaboration graph

Public Member Functions

 InvalidIndex (const std::string &index="", const std::string &min="", const std::string &max="")
 Construct a new Invalid Index object.
 
 ~InvalidIndex ()
 Destroy the Invalid Index object.
 
const char * what () const noexcept
 Retrieves the error message.
 

Detailed Description

This is the class in charge of informing the user that the index they provided is invalid.

Definition at line 546 of file Invalid.hpp.

Constructor & Destructor Documentation

◆ InvalidIndex()

CustomExceptions::InvalidIndex::InvalidIndex ( const std::string & index = "",
const std::string & min = "",
const std::string & max = "" )

Construct a new Invalid Index object.

Parameters
indexThe index provided by the user
minThe minimum allowed index.
maxThe maximum allowed index.

Definition at line 361 of file Invalid.cpp.

◆ ~InvalidIndex()

CustomExceptions::InvalidIndex::~InvalidIndex ( )

Destroy the Invalid Index object.

Definition at line 379 of file Invalid.cpp.

Member Function Documentation

◆ what()

const char * CustomExceptions::InvalidIndex::what ( ) const
noexcept

Retrieves the error message.

Returns
A C-style string representing the error message.

Definition at line 381 of file Invalid.cpp.


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