template struct mrpt::ExceptionWithCallBack

Overview

A wrapper around an std::exception.

#include <mrpt/core/exceptions.h>

template <class BASE_EXCEPTION>
struct ExceptionWithCallBack:
    public BASE_EXCEPTION,
    public mrpt::ExceptionWithCallBackBase
{
    // construction

    ExceptionWithCallBack(const BASE_EXCEPTION& originalException);

    // methods

    const char* what() const;
};

Inherited Members

public:
    // fields

    const std::string originalWhat;
    const TCallStackBackTrace callStack;

Methods

const char* what() const

Use this pointer only before this object is destroyed.