Rcpp Version 1.0.9
Rcpp::exception Class Reference

#include <exceptions.h>

Inheritance diagram for Rcpp::exception:
Collaboration diagram for Rcpp::exception:

Public Member Functions

 exception (const char *message_, bool include_call=RCPP_DEFAULT_INCLUDE_CALL)
 
 exception (const char *message_, const char *, int, bool include_call=RCPP_DEFAULT_INCLUDE_CALL)
 
bool include_call () const
 
virtual ~exception () throw ()
 
virtual const char * what () const throw ()
 
void copy_stack_trace_to_r () const
 

Private Member Functions

void record_stack_trace ()
 

Private Attributes

std::string message
 
bool include_call_
 
std::vector< std::string > stack
 

Detailed Description

Definition at line 36 of file exceptions.h.

Constructor & Destructor Documentation

◆ exception() [1/2]

Rcpp::exception::exception ( const char *  message_,
bool  include_call = RCPP_DEFAULT_INCLUDE_CALL 
)
inlineexplicit

Definition at line 38 of file exceptions.h.

References record_stack_trace().

Here is the call graph for this function:

◆ exception() [2/2]

Rcpp::exception::exception ( const char *  message_,
const char *  ,
int  ,
bool  include_call = RCPP_DEFAULT_INCLUDE_CALL 
)
inline

Definition at line 43 of file exceptions.h.

References record_stack_trace().

Here is the call graph for this function:

◆ ~exception()

virtual Rcpp::exception::~exception ( )
throw (
)
inlinevirtual

Definition at line 51 of file exceptions.h.

Member Function Documentation

◆ copy_stack_trace_to_r()

void Rcpp::exception::copy_stack_trace_to_r ( ) const
inline

◆ include_call()

bool Rcpp::exception::include_call ( ) const
inline

Definition at line 48 of file exceptions.h.

References include_call_.

Referenced by rcpp_exception_to_r_condition().

◆ record_stack_trace()

void Rcpp::exception::record_stack_trace ( )
inlineprivate

Definition at line 74 of file exceptions_impl.h.

References stack.

Referenced by exception().

◆ what()

virtual const char* Rcpp::exception::what ( ) const
throw (
)
inlinevirtual

Definition at line 52 of file exceptions.h.

References message.

Member Data Documentation

◆ include_call_

bool Rcpp::exception::include_call_
private

Definition at line 58 of file exceptions.h.

Referenced by include_call().

◆ message

std::string Rcpp::exception::message
private

Definition at line 57 of file exceptions.h.

Referenced by what().

◆ stack

std::vector<std::string> Rcpp::exception::stack
private

Definition at line 59 of file exceptions.h.

Referenced by copy_stack_trace_to_r(), and record_stack_trace().


The documentation for this class was generated from the following files: