[#node-Warnings] = xref:node.adoc[node]::Warnings :relfileprefix: ../ :mrdocs: Manages warning messages within a node. == Synopsis Declared in `<node/warnings.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class Warnings; ---- == Description Collects and surfaces node warnings shown to the user and over RPC. == Member Functions [cols="1,4"] |=== | Name| Description | xref:node/Warnings/2constructor-02.adoc[`Warnings`] [.small]#[constructor]# | Constructors | xref:node/Warnings/operator_assign.adoc[`operator=`] [.small]#[deleted]# | Copy assignment is deleted; a warnings instance must not be copied. | xref:node/Warnings/GetMessages.adoc[`GetMessages`] | Return potential problems detected by the node, sorted by the warning_type id | xref:node/Warnings/Set.adoc[`Set`] | Set a warning message. If a warning with the specified `id` is already active, false is returned and the new warning is ignored. If `id` does not yet exist, the warning is set, the UI is updated, and true is returned. | xref:node/Warnings/Unset.adoc[`Unset`] | Unset a warning message. If a warning with the specified `id` is active, it is unset, the UI is updated, and true is returned. Otherwise, no warning is unset and false is returned. |=== == Non-Member Functions [cols="1,4"] |=== | Name| Description | xref:node/GetWarningsForRpc.adoc[`GetWarningsForRpc`] | RPC helper function that wraps warnings.GetMessages(). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#