22 Exception(
const char *typeName,
const std::string &description,
const char* file,
const char*
function, uint32_t line);
33 const std::string& getTypeName()
const;
39 const std::string& getDescription()
const;
45 const std::string& getFile()
const;
51 const std::string& getFunction()
const;
57 uint32_t getLine()
const;
63 const char* what()
const noexcept
override;
78 :
Exception{
"NotImplementedException", description, file,
function, line} {}
85 :
Exception{
"FileNotFoundException", description, file,
function, line} {}
91 IOException(
const std::string &description,
const char* file,
const char*
function, uint32_t line)
92 :
Exception{
"IOException", description, file,
function, line} {}
99 :
Exception{
"InvalidParametersException", description, file,
function, line} {}
106 :
Exception{
"InternalErrorException", description, file,
function, line} {}
112 RendererException(
const std::string &description,
const char* file,
const char*
function, uint32_t line)
113 :
Exception{
"RendererException", description, file,
function, line} {}
119 WindowException(
const std::string &description,
const char* file,
const char*
function, uint32_t line)
120 :
Exception{
"WindowException", description, file,
function, line} {}
124 #define LUG_EXCEPT(type, desc)\ 126 throw ::lug::System::type(desc, __FILE__, LUG_SYSTEM_FUNCTION_NAME, __LINE__);\
FileNotFoundException(const std::string &description, const char *file, const char *function, uint32_t line)
NotImplementedException(const std::string &description, const char *file, const char *function, uint32_t line)
WindowException(const std::string &description, const char *file, const char *function, uint32_t line)
IOException(const std::string &description, const char *file, const char *function, uint32_t line)
RendererException(const std::string &description, const char *file, const char *function, uint32_t line)
InvalidParametersException(const std::string &description, const char *file, const char *function, uint32_t line)
InternalErrorException(const std::string &description, const char *file, const char *function, uint32_t line)