GeoLite2++  v0.0.1-2711
C++ API for MaxMind's GeoLite2 Database
Looking for a senior C++ dev? I'm looking for work. Hire me!
GeoLite2PP::ErrorCategory Class Reference

Error class used to return libmaxminddb error codes and messages when C++ exceptions are thrown. More...

#include <GeoLite2PP_error_category.hpp>

Inheritance diagram for GeoLite2PP::ErrorCategory:
Collaboration diagram for GeoLite2PP::ErrorCategory:

Public Member Functions

virtual const char * name (void) const noexcept
 Returns a unique name. More...
 
virtual std::string message (int code) const
 Convert a MaxMindDB error/status code into a readable text string message. More...
 

Detailed Description

Error class used to return libmaxminddb error codes and messages when C++ exceptions are thrown.

See also
MMDB_strerror()

Member Function Documentation

◆ message()

std::string GeoLite2PP::ErrorCategory::message ( int  code) const
virtual

Convert a MaxMindDB error/status code into a readable text string message.

◆ name()

const char * GeoLite2PP::ErrorCategory::name ( void  ) const
virtualnoexcept

Returns a unique name.


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