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

Manages warning messages within a node&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class Warnings;
----

== Description

Collects and surfaces node warnings shown to the user and over RPC&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:node/Warnings/2constructor-02.adoc[`Warnings`]         [.small]#[constructor]#
| Constructors
| xref:node/Warnings/operator_assign.adoc[`operator&equals;`]  [.small]#[deleted]#
| Copy assignment is deleted&semi; a warnings instance must not be copied&period;
| xref:node/Warnings/GetMessages.adoc[`GetMessages`] 
| Return potential problems detected by the node, sorted by the warning&lowbar;type id
| xref:node/Warnings/Set.adoc[`Set`] 
| Set a warning message&period; If a warning with the specified `id` is already active, false is returned and the new warning is ignored&period; If `id` does not yet exist, the warning is set, the UI is updated, and true is returned&period;
| xref:node/Warnings/Unset.adoc[`Unset`] 
| Unset a warning message&period; If a warning with the specified `id` is active, it is unset, the UI is updated, and true is returned&period; Otherwise, no warning is unset and false is returned&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:node/GetWarningsForRpc.adoc[`GetWarningsForRpc`]
| RPC helper function that wraps warnings&period;GetMessages()&period;
|===


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