[#CCoinsViewErrorCatcher-AddReadErrCallback]
= xref:CCoinsViewErrorCatcher.adoc[CCoinsViewErrorCatcher]::AddReadErrCallback
:relfileprefix: ../
:mrdocs:

Register a callback to run when a LevelDB read error occurs&period;

== Synopsis

Declared in `&lt;coins&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
AddReadErrCallback(std::function&lt;void()&gt; f);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *f*
| Callback to invoke on a read error&period;
|===


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