class rgpot::Error

Overview

Exception type for errors originating from the rgpot Rust core. More…

#include <errors.hpp>
 
class Error: public std::runtime_error {
public:
    // construction
 
    Error(const std::string& msg);
};

Detailed Documentation

Exception type for errors originating from the rgpot Rust core.

Thrown by the RAII wrappers when the underlying C API call returns a non-success status code. The what() string includes both the error category and the human-readable message from rgpot_last_error().

Construction

Error(const std::string& msg)

Constructs an Error with the given message.

Parameters:

msg

Human-readable description of the failure.