COPP C++ API
C++ interface for COPP trajectory optimization
Loading...
Searching...
No Matches
copp::Error Class Reference

Exception type thrown by the default C++ API. More...

#include <core.hpp>

Inheritance diagram for copp::Error:

Public Member Functions

 Error (Status status, std::string message)
Status status () const noexcept

Detailed Description

Exception type thrown by the default C++ API.

The message returned by what() is owned by this object and remains valid for the lifetime of the exception. This is important because the bridge may produce temporary Rust/C++ error objects internally.

Definition at line 99 of file core.hpp.

Constructor & Destructor Documentation

◆ Error()

copp::Error::Error ( Status status,
std::string message )
inline

Definition at line 102 of file core.hpp.

Member Function Documentation

◆ status()

Status copp::Error::status ( ) const
inlinenoexcept

Definition at line 105 of file core.hpp.


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