XPMP2
X-Plane multiplayer library 2 - using instancing
Public Member Functions | Protected Attributes | List of all members
XPMP2::XPMP2Error Class Reference

XPMP2 Exception class, e.g. thrown if there are no CSL models or duplicate modeS_ids when creating an Aircraft. More...

#include <XPMPAircraft.h>

+ Inheritance diagram for XPMP2::XPMP2Error:

Public Member Functions

 XPMP2Error (const char *szFile, int ln, const char *szFunc, const char *szMsg,...)
 Constructor puts together a formatted exception text. More...
 
virtual const char * what () const noexcept
 returns msg.c_str() More...
 
 XPMP2Error (const XPMP2Error &o)=default
 
 XPMP2Error (XPMP2Error &&o)=default
 
XPMP2Erroroperator= (const XPMP2Error &o)=default
 
XPMP2Erroroperator= (XPMP2Error &&o)=default
 

Protected Attributes

std::string fileName
 filename of the line of code where exception occurred More...
 
int ln
 line number of the line of code where exception occurred More...
 
std::string funcName
 function of the line of code where exception occurred More...
 
std::string msg
 additional text message More...
 

Detailed Description

XPMP2 Exception class, e.g. thrown if there are no CSL models or duplicate modeS_ids when creating an Aircraft.

Constructor & Destructor Documentation

◆ XPMP2Error() [1/3]

XPMP2::XPMP2Error::XPMP2Error ( const char *  szFile,
int  ln,
const char *  szFunc,
const char *  szMsg,
  ... 
)

Constructor puts together a formatted exception text.

◆ XPMP2Error() [2/3]

XPMP2::XPMP2Error::XPMP2Error ( const XPMP2Error o)
default

◆ XPMP2Error() [3/3]

XPMP2::XPMP2Error::XPMP2Error ( XPMP2Error &&  o)
default

Member Function Documentation

◆ operator=() [1/2]

XPMP2Error& XPMP2::XPMP2Error::operator= ( const XPMP2Error o)
default

◆ operator=() [2/2]

XPMP2Error& XPMP2::XPMP2Error::operator= ( XPMP2Error &&  o)
default

◆ what()

const char * XPMP2::XPMP2Error::what ( ) const
virtualnoexcept

returns msg.c_str()

Member Data Documentation

◆ fileName

std::string XPMP2::XPMP2Error::fileName
protected

filename of the line of code where exception occurred

◆ funcName

std::string XPMP2::XPMP2Error::funcName
protected

function of the line of code where exception occurred

◆ ln

int XPMP2::XPMP2Error::ln
protected

line number of the line of code where exception occurred

◆ msg

std::string XPMP2::XPMP2Error::msg
protected

additional text message


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