Go to the source code of this file.
◆ FRWK_CHECK_CUDA_ERROR
#define FRWK_CHECK_CUDA_ERROR |
( |
|
x | ) |
|
Value: { \
x; \
auto result = cudaGetLastError(); \
if (result != cudaSuccess) \
{ \
} \
};
Definition at line 322 of file Exception.hpp.
◆ FRWK_CHECK_CUDA_ERROR_NOTHROW
#define FRWK_CHECK_CUDA_ERROR_NOTHROW |
( |
|
x | ) |
|
Value: { \
x; \
auto result = cudaGetLastError(); \
if (result != cudaSuccess) \
{ \
DW_LOGE << __FILE__ \
<< "(" << __LINE__ << ") " \
<< "CUDA error but not thrown: " \
<< cudaGetErrorString(result) \
<< dw::core::Logger::State::endl; \
} \
};
Definition at line 332 of file Exception.hpp.
◆ FRWK_CHECK_DW_ERROR
#define FRWK_CHECK_DW_ERROR |
( |
|
x | ) |
|
Value: { \
dwStatus result = x; \
if (result != DW_SUCCESS) \
{ \
} \
};
Definition at line 263 of file Exception.hpp.
◆ FRWK_CHECK_DW_ERROR_IGNORE_SOME
#define FRWK_CHECK_DW_ERROR_IGNORE_SOME |
( |
|
x, |
|
|
|
fallback, |
|
|
|
... |
|
) |
| |
Value: { \
dwStatus result = x; \
dwStatus ignoreErros[] = {__VA_ARGS__}; \
if (result != DW_SUCCESS) \
{ \
if (std::find(std::begin(ignoreErros), std::end(ignoreErros), result) != std::end(ignoreErros)) \
{ \
DW_LOGD << __FILE__ \
<< "(" << __LINE__ << ") " \
<< "Ignoring Error: " \
<< dwGetStatusName(result) <<
". Falling back on calling " <<
GET_STRING(fallback) \
<< dw::core::Logger::State::endl; \
result = fallback; \
if (result != DW_SUCCESS) \
{ \
} \
} \
} \
if (result != DW_SUCCESS) \
{ \
} \
};
Definition at line 272 of file Exception.hpp.
◆ FRWK_CHECK_DW_ERROR_MSG
#define FRWK_CHECK_DW_ERROR_MSG |
( |
|
x, |
|
|
|
description |
|
) |
| |
Value: { \
dwStatus result = (x); \
if (result != DW_SUCCESS) \
{ \
} \
};
Definition at line 311 of file Exception.hpp.
◆ FRWK_CHECK_DW_ERROR_NOTHROW
#define FRWK_CHECK_DW_ERROR_NOTHROW |
( |
|
x | ) |
|
Value: { \
dwStatus result = x; \
if (result != DW_SUCCESS) \
{ \
DW_LOGE << __FILE__ \
<< "(" << __LINE__ << ") " \
<< "DriveWorks exception but not thrown: " \
<< dwGetStatusName(result) \
<< dw::core::Logger::State::endl; \
} \
};
Definition at line 298 of file Exception.hpp.
◆ FRWK_CHECK_NVMEDIA_ERROR
#define FRWK_CHECK_NVMEDIA_ERROR |
( |
|
e | ) |
|
Value: { \
auto FRWK_CHECK_NVMEDIA_ERROR_ret = (e); \
if (FRWK_CHECK_NVMEDIA_ERROR_ret != NVMEDIA_STATUS_OK) \
{ \
} \
}
Definition at line 346 of file Exception.hpp.
◆ FRWK_CHECK_NVSCI_ERROR
#define FRWK_CHECK_NVSCI_ERROR |
( |
|
e | ) |
|
Value: { \
auto FRWK_CHECK_NVSCI_ERROR_ret = (e); \
if (FRWK_CHECK_NVSCI_ERROR_ret != NvSciError_Success) \
{ \
<< "(" << FRWK_CHECK_NVSCI_ERROR_ret << ")" \
<< " in " << __FILE__ \
<< ":" << __LINE__ << Logger::State::endl; \
if (FRWK_CHECK_NVSCI_ERROR_ret == NvSciError_Timeout) \
throw Exception(DW_TIME_OUT, "NvSci API Timeout"); \
else \
throw Exception(DW_INTERNAL_ERROR, "NvSci internal error occured"); \
} \
}
const char * nvSciGetErrorName(uint32_t error)
Definition at line 355 of file Exception.hpp.
◆ GET_STRING
#define GET_STRING |
( |
|
s | ) |
#s |
◆ THROW_ON_PARAM_NULL
#define THROW_ON_PARAM_NULL |
( |
|
param | ) |
|
Value: if (param == nullptr) \
{ \
}
Definition at line 40 of file Exception.hpp.