[#wallet-HandleWalletError]
= xref:wallet.adoc[wallet]::HandleWalletError
:relfileprefix: ../
:mrdocs:

Translates a wallet loading result into the appropriate RPC error&period;

== Synopsis

Declared in `&lt;wallet&sol;rpc&sol;util&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
HandleWalletError(
    std::shared&lowbar;ptr&lt;CWallet&gt; const& wallet,
    xref:wallet/DatabaseStatus.adoc[DatabaseStatus]& status,
    xref:bilingual_str.adoc[bilingual&lowbar;str]& error);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *wallet*
| The loaded wallet, or null on failure&period;
| *status*
| The database status returned while loading&period;
| *error*
| The error message describing the failure&period;
|===


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