Abort the node in response to a fatal, unrecoverable internal error.
Declared in <node/abort.h>
void
AbortNode(
std::function<bool()> const& shutdown_request,
std::atomic<int>& exit_status,
bilingual_str const& message,
node::Warnings* warnings);
Records the error as a warning, requests a shutdown through the supplied callback, and reports the exit status back to the caller.
| Name | Description |
|---|---|
| shutdown_request | Callback invoked to request that the node shut down. |
| exit_status | Atomic exit status set to a failure value for the caller to observe. |
| message | Human-readable description of the fatal error. |
| warnings | Optional warnings subsystem the error is recorded in; may be null. |