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

This is the class in charge of raising the invalid width error informing the user that the width they provided is invalid. This class is meant to be a bit more generic so that this type of error can be raised by more than one party. More...

#include <Invalid.hpp>

Inheritance diagram for CustomExceptions::InvalidWidth:
Inheritance graph
Collaboration diagram for CustomExceptions::InvalidWidth:
Collaboration graph

Public Member Functions

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

Detailed Description

This is the class in charge of raising the invalid width error informing the user that the width they provided is invalid. This class is meant to be a bit more generic so that this type of error can be raised by more than one party.

Definition at line 394 of file Invalid.hpp.

Constructor & Destructor Documentation

◆ InvalidWidth()

CustomExceptions::InvalidWidth::InvalidWidth ( const std::string & width = "",
const std::string & min = "",
const std::string & max = "" )

Construct a new Invalid Width object.

Parameters
widthThe width that was provided.
minThe minimum allowed width
maxThe maximum allowed width

Definition at line 259 of file Invalid.cpp.

◆ ~InvalidWidth()

CustomExceptions::InvalidWidth::~InvalidWidth ( )

Destroy the Invalid Width object.

Definition at line 277 of file Invalid.cpp.

Member Function Documentation

◆ what()

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

Retrieves the error message.

Returns
A C-style string representing the error message.

Definition at line 279 of file Invalid.cpp.


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