dxd - dynax driver framework  2981
cross platform open source driver development framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
dx_exception.h File Reference
#include <dx_platform.h>
#include <stdexcept>
#include <iomanip>
#include <chrono>
#include <mutex>
+ Include dependency graph for dx_exception.h:
+ This graph shows which files directly or indirectly include this file:

Classes

class  dx::exception
 

Namespaces

 dx
 dynax driver framework user mode interface namespace
 

Macros

#define catchall(cleanup)
 
#define catchall_rethrow(cleanup)
 
#define dx_pass(test)
 
#define dx_pass_strict(test)
 

Functions

void dx::halt ()
 
std::ostream & dx::operator<< (std::ostream &os, const exception &exception)
 

Variables

std::recursive_mutex dx::io_mutex
 

Macro Definition Documentation

#define catchall (   cleanup)
Value:
catch (const dx::exception& __dx_exception){\
cleanup\
std::cerr<< __dx_exception<< std::endl;\
}catch (...){\
cleanup\
std::cerr<<\
dx::exception(\
DX_STRINGIFY(test),\
__FILE__, __LINE__)<<\
std::endl;\
}
Definition: dx_exception.h:86
#define __PRETTY_FUNCTION__
mock compiler idiosyncrasies
Definition: windows/dx_platform.h:36
#define DX_STRINGIFY(x)
Definition: dx_macros.h:32
Definition: macOS/dx_platform.h:159
#define catchall_rethrow (   cleanup)
Value:
catch (const dx::exception& __dx_exception){\
cleanup\
throw dx::exception (__dx_exception.error, __PRETTY_FUNCTION__, __FILE__, __LINE__, &__dx_exception);\
}catch(...){\
cleanup\
throw dx::exception (unknown, __PRETTY_FUNCTION__, __FILE__, __LINE__);\
}
os_result error
Definition: dx_exception.h:89
Definition: dx_exception.h:86
#define __PRETTY_FUNCTION__
mock compiler idiosyncrasies
Definition: windows/dx_platform.h:36
Definition: macOS/dx_platform.h:159
#define dx_pass (   test)
Value:
{\
dx::os_result __dx_test_status=(test);\
if (dx::os_error(__dx_test_status)){\
throw dx::exception(\
__dx_test_status,\
DX_STRINGIFY(test),\
__FILE__, __LINE__);}}
void halt()
Definition: dx_exception.h:154
::HRESULT os_result
Definition: windows/dx_platform.h:196
Definition: dx_exception.h:86
#define __PRETTY_FUNCTION__
mock compiler idiosyncrasies
Definition: windows/dx_platform.h:36
#define DX_STRINGIFY(x)
Definition: dx_macros.h:32
bool os_error(os_result result) noexcept
Definition: macOS/dx_platform.h:168
if(!this->started &&exception.error==aborted) return
#define dx_pass_strict (   test)
Value:
{\
dx::os_result __dx_test_status=(test);\
if (__dx_test_status){\
throw dx::exception(\
__dx_test_status,\
DX_STRINGIFY(test),\
__FILE__, __LINE__);}}
void halt()
Definition: dx_exception.h:154
::HRESULT os_result
Definition: windows/dx_platform.h:196
Definition: dx_exception.h:86
#define __PRETTY_FUNCTION__
mock compiler idiosyncrasies
Definition: windows/dx_platform.h:36
#define DX_STRINGIFY(x)
Definition: dx_macros.h:32
if(!this->started &&exception.error==aborted) return

(c) copyright 2009 dynamic acoustics e.U. generated on Tue Nov 19 2019

a closed source license may be obtained by requesting a written permission from dynamic acoustics e.U.
however - governmental use generally and military use especially is strictly prohibited though.