class NRPExceptionRecoverable

Exception for recoverable errors.

#include <nrp_exceptions.h>

class NRPExceptionRecoverable: public NRPException {
public:
    // construction

    template <class T>
    NRPExceptionRecoverable(T&& msg, bool msgLogged = false);
};

Inherited Members

public:
    // methods

    template <class EXCEPTION>
    static void logOnce(
        EXCEPTION& exception,
        NRPLogger::spdlog_out_fcn_t spdlogCall = NRPLogger::critical
    );

    template <class EXCEPTION = NRPExceptionNonRecoverable, class LOG_EXCEPTION_T>
    static EXCEPTION logCreate(
        LOG_EXCEPTION_T& exception,
        const std::string& msg,
        NRPLogger::spdlog_out_fcn_t spdlogCall = NRPLogger::critical
    );

    template <class EXCEPTION = NRPExceptionNonRecoverable>
    static EXCEPTION logCreate(
        const std::string& msg,
        NRPLogger::spdlog_out_fcn_t spdlogCall = NRPLogger::critical
    );

    static void logCreate(
        const std::string& msg,
        NRPLogger::spdlog_out_fcn_t spdlogCall
    );

    const char* what() const;