[#CBanEntry-2constructor-0ea]
= xref:CBanEntry.adoc[CBanEntry]::CBanEntry
:relfileprefix: ../
:mrdocs:

Create a ban entry from JSON&period;

== Synopsis

Declared in `&lt;net&lowbar;types&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
CBanEntry(xref:UniValue.adoc[UniValue] const& json);
----

== Exceptions

[cols="1,4"]
|===
| Name| Thrown on
| `std&colon;&colon;runtime&lowbar;error`
| if the JSON does not have the expected fields&period;
|===

== Parameters

[cols="1,4"]
|===
| Name| Description
| *json* [in]
| A JSON representation of a ban entry, as created by `ToJson()`&period;
|===


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