[#node-AbortNode]
= xref:node.adoc[node]::AbortNode
:relfileprefix: ../
:mrdocs:

Abort the node in response to a fatal, unrecoverable internal error&period;

== Synopsis

Declared in `&lt;node&sol;abort&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
AbortNode(
    std::function&lt;bool()&gt; const& shutdown&lowbar;request,
    std::atomic&lt;int&gt;& exit&lowbar;status,
    xref:bilingual_str.adoc[bilingual&lowbar;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&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *shutdown&lowbar;request*
| Callback invoked to request that the node shut down&period;
| *exit&lowbar;status*
| Atomic exit status set to a failure value for the caller to observe&period;
| *message*
| Human&hyphen;readable description of the fatal error&period;
| *warnings*
| Optional warnings subsystem the error is recorded in&semi; may be null&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
