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

This is the class in charge of raising the invalid height error informing the user that the height 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::InvalidHeight:
Inheritance graph
Collaboration diagram for CustomExceptions::InvalidHeight:
Collaboration graph

Public Member Functions

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

Detailed Description

This is the class in charge of raising the invalid height error informing the user that the height 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 427 of file Invalid.hpp.

Constructor & Destructor Documentation

◆ InvalidHeight()

CustomExceptions::InvalidHeight::InvalidHeight ( const std::string & height = "",
const std::string & min = "",
const std::string & max = "" )

Construct a new Invalid Height object.

Parameters
heightThe height they provided
minThe minimum allowed height
maxThe maximum allowed height

Definition at line 284 of file Invalid.cpp.

◆ ~InvalidHeight()

CustomExceptions::InvalidHeight::~InvalidHeight ( )

Destroy the Invalid Height object.

Definition at line 302 of file Invalid.cpp.

Member Function Documentation

◆ what()

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

Retrieves the error message.

Returns
A C-style string representing the error message.

Definition at line 304 of file Invalid.cpp.


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