[#CBanEntry-2constructor-0ea] = xref:CBanEntry.adoc[CBanEntry]::CBanEntry :relfileprefix: ../ :mrdocs: Create a ban entry from JSON. == Synopsis Declared in `<net_types.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit CBanEntry(xref:UniValue.adoc[UniValue] const& json); ---- == Exceptions [cols="1,4"] |=== | Name| Thrown on | `std::runtime_error` | if the JSON does not have the expected fields. |=== == Parameters [cols="1,4"] |=== | Name| Description | *json* [in] | A JSON representation of a ban entry, as created by `ToJson()`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#