SLProject  4.3.020
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
SENSException Class Reference

#include <SENSException.h>

Inherits std::runtime_error.

Public Member Functions

 SENSException (SENSType type, const std::string &msg, const int line, const std::string &file)
 

Private Member Functions

std::string toMessage (const std::string &msg, const int line, const std::string &file)
 

Detailed Description

Definition at line 9 of file SENSException.h.

Constructor & Destructor Documentation

◆ SENSException()

SENSException::SENSException ( SENSType  type,
const std::string &  msg,
const int  line,
const std::string &  file 
)
inline

Definition at line 12 of file SENSException.h.

13  : std::runtime_error(toMessage(msg, line, file).c_str())
14  {
15  }
std::string toMessage(const std::string &msg, const int line, const std::string &file)
Definition: SENSException.h:18

Member Function Documentation

◆ toMessage()

std::string SENSException::toMessage ( const std::string &  msg,
const int  line,
const std::string &  file 
)
inlineprivate

Definition at line 18 of file SENSException.h.

19  {
20  std::stringstream ss;
21  ss << msg << ": Exception thrown at line " << line << " in " << file << std::endl;
22  return ss.str();
23  }

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