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

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

#include <Invalid.hpp>

Inheritance diagram for CustomExceptions::InvalidDuration:
Inheritance graph
Collaboration diagram for CustomExceptions::InvalidDuration:
Collaboration graph

Public Member Functions

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

Detailed Description

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

Definition at line 577 of file Invalid.hpp.

Constructor & Destructor Documentation

◆ InvalidDuration()

CustomExceptions::InvalidDuration::InvalidDuration ( const std::string & duration = "",
const std::string & min = "",
const std::string & max = "" )

Construct a new Invalid Duration object.

Parameters
durationThe duration provided by the user.
minThe minimum allowed duration.
maxThe maximum allowed duration.

Definition at line 386 of file Invalid.cpp.

◆ ~InvalidDuration()

CustomExceptions::InvalidDuration::~InvalidDuration ( )

Destroy the Invalid Duration object.

Definition at line 404 of file Invalid.cpp.

Member Function Documentation

◆ what()

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

Retrieves the error message.

Returns
A C-style string representing the error message.

Definition at line 406 of file Invalid.cpp.


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