RAVENNAKIT
Loading...
Searching...
No Matches
rav::Exception Class Reference

#include <exception.hpp>

Inheritance diagram for rav::Exception:

Public Member Functions

 Exception (const char *msg, const char *file=nullptr, const int line=-1, const char *function_name=nullptr)
 Exception (std::string msg, const char *file=nullptr, const int line=-1, const char *function_name=nullptr)
const char * what () const noexcept override
const char * file () const
int line () const
const char * function_name () const

Detailed Description

Definition at line 48 of file exception.hpp.

Constructor & Destructor Documentation

◆ Exception() [1/2]

rav::Exception::Exception ( const char * msg,
const char * file = nullptr,
const int line = -1,
const char * function_name = nullptr )
inlineexplicit

Definition at line 50 of file exception.hpp.

◆ Exception() [2/2]

rav::Exception::Exception ( std::string msg,
const char * file = nullptr,
const int line = -1,
const char * function_name = nullptr )
inlineexplicit

Definition at line 53 of file exception.hpp.

Member Function Documentation

◆ file()

const char * rav::Exception::file ( ) const
inlinenodiscard
Returns
The file where the error occurred.

Definition at line 66 of file exception.hpp.

◆ function_name()

const char * rav::Exception::function_name ( ) const
inlinenodiscard
Returns
The name of the function where the error occurred.

Definition at line 80 of file exception.hpp.

◆ line()

int rav::Exception::line ( ) const
inlinenodiscard
Returns
The line number where the error occurred.

Definition at line 73 of file exception.hpp.

◆ what()

const char * rav::Exception::what ( ) const
inlinenodiscardoverridenoexcept
Returns
The error message associated with the error code.

Definition at line 59 of file exception.hpp.


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