#include <sstream>
#include <stdexcept>
#include <string>
Go to the source code of this file.
|
| | armnn |
| | Copyright (c) 2021 ARM Limited and Contributors.
|
| |
|
| #define | CHECK_LOCATION() armnn::CheckLocation(__func__, __FILE__, __LINE__) |
| |
| #define | ARMNN_THROW_MSG_IF_FALSE(_cond, _except, _str) do { if (!(static_cast<bool>(_cond))) {throw _except(_str);} } while(0) |
| |
| #define | ARMNN_THROW_IF_FALSE(_cond, _except) ARMNN_THROW_MSG_IF_FALSE(_cond, _except, #_cond) |
| |
| #define | ARMNN_THROW_INVALIDARG_MSG_IF_FALSE(_cond, _str) ARMNN_THROW_MSG_IF_FALSE(_cond, armnn::InvalidArgumentException, _str) |
| |
| #define | ARMNN_THROW_INVALIDARG_IF_FALSE(_cond) ARMNN_THROW_MSG_IF_FALSE(_cond, armnn::InvalidArgumentException, #_cond) |
| |
|
| template<typename ExceptionType > |
| void | ConditionalThrow (bool condition, const std::string &message) |
| |
| template<typename ExceptionType > |
| void | ConditionalThrow (bool condition) |
| |
| template<typename ExceptionType , typename ComparedType > |
| void | ConditionalThrowIfNotEqual (const std::string &message, const ComparedType &leftHandSide, const ComparedType &rightHandSide) |
| | ComparedType must support: operator==(const ComparedType&) operator<<(ostream&, const ComparedType&) More...
|
| |
◆ ARMNN_THROW_IF_FALSE
◆ ARMNN_THROW_INVALIDARG_IF_FALSE
◆ ARMNN_THROW_INVALIDARG_MSG_IF_FALSE
◆ ARMNN_THROW_MSG_IF_FALSE
| #define ARMNN_THROW_MSG_IF_FALSE |
( |
|
_cond, |
|
|
|
_except, |
|
|
|
_str |
|
) |
| do { if (!(static_cast<bool>(_cond))) {throw _except(_str);} } while(0) |
◆ CHECK_LOCATION