Rcpp Version 1.1.2
Loading...
Searching...
No Matches
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 38 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 40 of file exceptions.h.

References include_call(), include_call_, message, RCPP_DEFAULT_INCLUDE_CALL, and 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 45 of file exceptions.h.

References include_call(), include_call_, message, RCPP_DEFAULT_INCLUDE_CALL, and record_stack_trace().

Here is the call graph for this function:

◆ ~exception()

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

Definition at line 53 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 50 of file exceptions.h.

References include_call_.

Referenced by exception(), exception(), and rcpp_exception_to_r_condition().

◆ record_stack_trace()

void Rcpp::exception::record_stack_trace ( )
inlineprivate

Definition at line 84 of file exceptions_impl.h.

References stack.

Referenced by exception(), and exception().

◆ what()

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

Definition at line 54 of file exceptions.h.

References message.

Member Data Documentation

◆ include_call_

bool Rcpp::exception::include_call_
private

Definition at line 60 of file exceptions.h.

Referenced by exception(), exception(), and include_call().

◆ message

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

Definition at line 59 of file exceptions.h.

Referenced by exception(), exception(), and what().

◆ stack

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

Definition at line 61 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: