join 1.0
lightweight network framework library
Loading...
Searching...
No Matches
join::JsonCategory Class Reference

JSON error category. More...

#include <json.hpp>

Inheritance diagram for join::JsonCategory:
Collaboration diagram for join::JsonCategory:

Public Member Functions

virtual const char * name () const noexcept
 get JSON error category name.
 
virtual std::string message (int code) const
 translate JSON error code to human readable error string.
 

Detailed Description

JSON error category.

Member Function Documentation

◆ message()

std::string JsonCategory::message ( int code) const
virtual

translate JSON error code to human readable error string.

Parameters
codeerror code.
Returns
human readable error string.

◆ name()

const char * JsonCategory::name ( ) const
virtualnoexcept

get JSON error category name.

Returns
JSON error category name.

The documentation for this class was generated from the following files: