#include <utility>
Go to the source code of this file.
|
template<typename... Args> |
void | Rcpp::warning (const char *fmt, Args &&... args) |
|
template<typename... Args> |
void NORET | Rcpp::stop (const char *fmt, Args &&... args) |
|
◆ RCPP_ADVANCED_EXCEPTION_CLASS
#define RCPP_ADVANCED_EXCEPTION_CLASS |
( |
|
__CLASS__, |
|
|
|
__WHAT__ |
|
) |
| |
Value:class __CLASS__ : public std::exception { \
public: \
__CLASS__( ) throw() :
message(
std::
string(__WHAT__) + "." ){} \
__CLASS__(
const std::string&
message )
throw() : \
message( std::string(__WHAT__) +
": " +
message +
"."){} \
template <typename... Args> \
__CLASS__( const char* fmt, Args&&... args ) throw() : \
message(
tfm::format(fmt, std::forward<Args>(args)... ) ){} \
virtual ~__CLASS__() throw(){} \
virtual
const char* what()
const throw() {
return message.c_str(); } \
private: \
};
Definition at line 30 of file exceptions.h.