nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
nk::Error Class Reference
Inheritance diagram for nk::Error:

Public Member Functions

 Error (const std::string &msg, int line=0, int col=0, const std::string &funcName="", const std::string &context="", const std::string &identifier="")
int line () const
int col () const
const std::string & funcName () const
const std::string & context () const
const std::string & identifier () const
void attachIfMissing (int line, int col, const std::string &funcName="", const std::string &context="")
std::string formattedWhat () const

Detailed Description

Definition at line 22 of file error.hpp.

Constructor & Destructor Documentation

◆ Error()

nk::Error::Error ( const std::string & msg,
int line = 0,
int col = 0,
const std::string & funcName = "",
const std::string & context = "",
const std::string & identifier = "" )
inline

Definition at line 25 of file error.hpp.

Member Function Documentation

◆ attachIfMissing()

void nk::Error::attachIfMissing ( int line,
int col,
const std::string & funcName = "",
const std::string & context = "" )
inline

Definition at line 50 of file error.hpp.

◆ col()

int nk::Error::col ( ) const
inline

Definition at line 40 of file error.hpp.

◆ context()

const std::string & nk::Error::context ( ) const
inline

Definition at line 42 of file error.hpp.

◆ formattedWhat()

std::string nk::Error::formattedWhat ( ) const
inline

Definition at line 66 of file error.hpp.

◆ funcName()

const std::string & nk::Error::funcName ( ) const
inline

Definition at line 41 of file error.hpp.

◆ identifier()

const std::string & nk::Error::identifier ( ) const
inline

Definition at line 43 of file error.hpp.

◆ line()

int nk::Error::line ( ) const
inline

Definition at line 39 of file error.hpp.


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