|
NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
|
Fail a node with an author code. More...
#include <types.h>
Public Member Functions | |
| const std::string & | code () const noexcept |
| The author code; empty when the failure carries none (NG.TaskFailed). | |
Protected Member Functions | |
| NodeFailureError (std::string what, std::string code, std::string public_message, std::optional< bool > retryable) | |
| For bindings that translate a foreign error: what() keeps that error's text. | |
Fail a node with an author code.
The code must be an author code (is_author_failure_code()); otherwise the constructor throws std::invalid_argument. A retryable of false stops the retry loop. public_message is the only text a failure record may carry.
|
inlineprotected |