Babel  1
The voip software that only works on your local network
Loading...
Searching...
No Matches
CustomExceptions::InvalidNumber Class Reference

Exception class for invalid durations. More...

#include <Invalid.hpp>

Inheritance diagram for CustomExceptions::InvalidNumber:
Inheritance graph
Collaboration diagram for CustomExceptions::InvalidNumber:
Collaboration graph

Public Member Functions

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

Detailed Description

Exception class for invalid durations.

Definition at line 213 of file Invalid.hpp.

Constructor & Destructor Documentation

◆ InvalidNumber()

CustomExceptions::InvalidNumber::InvalidNumber ( const std::string & number = "",
const std::string & min = "",
const std::string & max = "" )

Construct a new InvalidNumber object.

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

Definition at line 146 of file Invalid.cpp.

◆ ~InvalidNumber()

CustomExceptions::InvalidNumber::~InvalidNumber ( )

Destroy the InvalidNumber object.

Definition at line 164 of file Invalid.cpp.

Member Function Documentation

◆ what()

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

Retrieves the error message.

Returns
A C-style string representing the error message.

Definition at line 166 of file Invalid.cpp.


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