Lib
QOLを高める
Classes | Functions
yappy::error Namespace Reference

Exceptions and utilities. More...

Classes

class  D3DError
 
class  DIError
 
class  DSError
 
class  DXError
 
class  FrameworkError
 
class  MmioError
 
class  OggVorbisError
 
class  Win32Error
 
class  WinSockError
 
class  XAudioError
 

Functions

std::string createStackTraceMsg (const std::string &msg)
 Returns (msg + stacktrace) string. More...
 
template<class E , class... Args>
 __declspec (noreturn) inline void throwTrace(const std
 Throw exception with (msg + stacktrace) message. More...
 
void checkWin32Result (bool cond, const std::string &msg)
 
template<class T >
void checkDXResult (HRESULT hr, const std::string &msg)
 

Detailed Description

Exceptions and utilities.

Function Documentation

template<class E , class... Args>
yappy::error::__declspec ( noreturn  ) const

Throw exception with (msg + stacktrace) message.

This function calls the constructor of exception class E as:

throw E(msg + stacktrace, args...);
Template Parameters
EException class to be thrown.
ArgsAdditional parameters for constructor call.
Parameters
[in]msgException message.
[in]argsAdditional parameters for constructor call.

Definition at line 30 of file exceptions.h.

template<class T >
void yappy::error::checkDXResult ( HRESULT  hr,
const std::string &  msg 
)
inline

Definition at line 83 of file exceptions.h.

void yappy::error::checkWin32Result ( bool  cond,
const std::string &  msg 
)
inline

Definition at line 50 of file exceptions.h.

std::string yappy::error::createStackTraceMsg ( const std::string &  msg)

Returns (msg + stacktrace) string.

Parameters
[in]msgOriginal string.
Returns
msg + stacktrace.

Definition at line 11 of file exceptions.cpp.