Rcpp Version 0.12.12
exceptions.h File Reference
#include <utility>
Include dependency graph for exceptions.h:

Go to the source code of this file.

Namespaces

 Rcpp
 Rcpp API.
 

Macros

#define RCPP_ADVANCED_EXCEPTION_CLASS(__CLASS__, __WHAT__)
 

Functions

template<typename... Args>
void Rcpp::warning (const char *fmt, Args &&...args)
 
template<typename... Args>
void NORET Rcpp::stop (const char *fmt, Args &&...args)
 

Macro Definition Documentation

#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: \
std::string message; \
};
Definition: swap.h:25
void format(std::ostream &out, const char *fmt)
Definition: tinyformat.h:986

Definition at line 30 of file exceptions.h.