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

This is the class in charge of informing the user that the argument that was provided is not known to the program. More...

#include <Unknown.hpp>

Inheritance diagram for CustomExceptions::UnknownArgument:
Inheritance graph
Collaboration diagram for CustomExceptions::UnknownArgument:
Collaboration graph

Public Member Functions

 UnknownArgument (const std::string &argument="")
 Construct a new Unknown Argument object.
 
 ~UnknownArgument ()
 Destroy the Unknown Argument object.
 
const char * what () const noexcept
 Retrieves the error message.
 

Detailed Description

This is the class in charge of informing the user that the argument that was provided is not known to the program.

Definition at line 29 of file Unknown.hpp.

Constructor & Destructor Documentation

◆ UnknownArgument()

CustomExceptions::UnknownArgument::UnknownArgument ( const std::string & argument = "")

Construct a new Unknown Argument object.

Parameters
argumentThe argument that was provided by the user.

Definition at line 19 of file Unknown.cpp.

◆ ~UnknownArgument()

CustomExceptions::UnknownArgument::~UnknownArgument ( )

Destroy the Unknown Argument object.

Definition at line 28 of file Unknown.cpp.

Member Function Documentation

◆ what()

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

Retrieves the error message.

Returns
A C-style string representing the error message.

Definition at line 30 of file Unknown.cpp.


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