|
| MGIS_EXPORT void | mgis::setExceptionHandler (ExceptionHandler) |
| | set an exception handler
|
| |
|
MGIS_EXPORT ExceptionHandler | mgis::getExceptionHandler () |
| | return a registred exception handler, nullptr if none were registred.
|
| |
| template<typename Exception = std::runtime_error> |
| MGIS_VISIBILITY_LOCAL void | mgis::raise () |
| | a small wrapper used to build the exception outside the throw statement. As most exception's classes constructors may throw, this avoids undefined behaviour as reported by the cert-err60-cpp warning of clang-tidy (thrown exception type is not nothrow copy constructible).
|
| |
| template<typename Exception = std::runtime_error, typename... Args> |
| MGIS_VISIBILITY_LOCAL void | mgis::raise (Args &&...) |
| | a small wrapper used to build the exception outside the throw statement. As most exception's classes constructors may throw, this avoids undefined behaviour as reported by the cert-err60-cpp warning of clang-tidy (thrown exception type is not nothrow copy constructible).
|
| |
| template<typename Exception = std::runtime_error> |
| MGIS_VISIBILITY_LOCAL void | mgis::raise_if (const bool) |
| | raise an exception if the first argument is true.
|
| |
| template<typename Exception = std::runtime_error, typename... Args> |
| MGIS_VISIBILITY_LOCAL void | mgis::raise_if (const bool, Args &&...) |
| | raise an exception if the first argument is true.
|
| |
declaration of the raise function.
- Author
- Thomas Helfer
- Date
- 20/06/2018
- Copyright
- (C) Copyright Thomas Helfer 2018. Use, modification and distribution are subject to one of the following licences:
- GNU Lesser General Public License (LGPL), Version 3.0. (See accompanying file LGPL-3.0.txt)
- CECILL-C, Version 1.0 (See accompanying files CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt).