SDOM - Simple SDL Document Object Model
A lightweight, extensible Document Object Model for SDL-based applications.
Loading...
Searching...
No Matches
SDOM::Exception Class Reference

Custom exception class for SDOM errors. More...

#include <SDOM.hpp>

Inheritance diagram for SDOM::Exception:

Public Member Functions

 Exception (const std::string &message, const std::string &file, int line)
 
const char * what () const noexcept override
 
std::string getFile () const
 
int getLine () const
 

Detailed Description

Custom exception class for SDOM errors.

Stores an error message, file name, and line number for debugging.

Use with the ERROR macro for standardized error reporting.

Constructor & Destructor Documentation

◆ Exception()

SDOM::Exception::Exception ( const std::string &  message,
const std::string &  file,
int  line 
)
inline

Member Function Documentation

◆ getFile()

std::string SDOM::Exception::getFile ( ) const
inline

◆ getLine()

int SDOM::Exception::getLine ( ) const
inline

◆ what()

const char * SDOM::Exception::what ( ) const
inlineoverridenoexcept

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