[#node-AbortNode] = xref:node.adoc[node]::AbortNode :relfileprefix: ../ :mrdocs: Abort the node in response to a fatal, unrecoverable internal error. == Synopsis Declared in `<node/abort.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void AbortNode( std::function<bool()> const& shutdown_request, std::atomic<int>& exit_status, xref:bilingual_str.adoc[bilingual_str] const& message, xref:node/Warnings.adoc[node::Warnings]* warnings); ---- == Description Records the error as a warning, requests a shutdown through the supplied callback, and reports the exit status back to the caller. == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#