libptpmgmt  1.3
libptpmgmt library that provides the functionality of linuxptp pmc
Static Public Member Functions | List of all members
Error Class Reference

Keep last error. More...

#include <err.h>

Static Public Member Functions

static bool isError ()
 
static const std::string & getError ()
 
static const std::string & getFile ()
 
static int getFileLine ()
 
static const std::string & getFunc ()
 
static int getErrno ()
 
static const std::string & getMsg ()
 
static const std::string & getErrnoMsg ()
 

Detailed Description

Keep last error.

The class keep the last error created in the libptpmgmt library The class is thread-safe, the error is kept per thread seperatly!

Member Function Documentation

◆ getErrno()

static int Error::getErrno ( )
inlinestatic

Get last error errno value

Returns
last errno value or zero if last error was not using errno

◆ getErrnoMsg()

static const std::string& Error::getErrnoMsg ( )
static

Get last errno message

Returns
last error message
Note
The error do not include the errno message!

◆ getError()

static const std::string& Error::getError ( )
inlinestatic

Get last error full string

Returns
last error string

◆ getFile()

static const std::string& Error::getFile ( )
inlinestatic

Get last error source file name

Returns
last error source file name

◆ getFileLine()

static int Error::getFileLine ( )
inlinestatic

Get last error source file line number

Returns
last error source file line number

◆ getFunc()

static const std::string& Error::getFunc ( )
inlinestatic

Get last error function name

Returns
last error function name

◆ getMsg()

static const std::string& Error::getMsg ( )
inlinestatic

Get last error message

Returns
last error message
Note
The error do not include the errno message!

◆ isError()

static bool Error::isError ( )
inlinestatic

Query if we have error

Returns
last error string

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