SUPER Space invader : Turbo edition DX - VS GOD 1.0.0
A simple space invader ripoff
cexception.hpp
Go to the documentation of this file.
1
21#ifndef CEXCEPTION_HPP
22#define CEXCEPTION_HPP
23
24#include <string>
25
26#include "cexception.h"
27
28inline nsException::CException::CException(const std::string& Libelle /* = std::string () */, const unsigned CodErr /* = KNoExc */)
29 : m_Libelle (Libelle)
30 , m_CodErr (CodErr)
31{} // CException()
32
33inline const std::string& nsException::CException::GetLibelle() const
34{
35 return m_Libelle;
36} // GetLibelle()
37
39{
40 return m_CodErr;
41} // GetCoderr()
42
43inline const char* nsException::CException::what() const noexcept
44{
45 return m_Libelle.c_str();
46} // what()
47
48#endif // CEXCEPTION_HPP
49
Declaration de la classe CException.
virtual const char * what() const noexcept override
Retourne une chaine de caractère C décrivant l'exception.
Definition: cexception.hpp:43
unsigned GetCodErr() const
Récupère le code erreur de l'exception.
Definition: cexception.hpp:38
CException(const std::string &Libelle=std::string(), const unsigned CodErr=KNoExc)
Constructeur pour la classe CException.
Definition: cexception.hpp:28
const std::string & GetLibelle() const
Récupère le libellé de l'exception.
Definition: cexception.hpp:33