ifm3d::Error Class Reference

#include <ifm3d/device/err.h>

Inheritance diagram for ifm3d::Error:
Collaboration diagram for ifm3d::Error:

Public Member Functions

 Error (int errnum, const std::string &msg="")
virtual const char * what () const noexcept
int code () const noexcept
const char * message () const noexcept

Detailed Description

Exception wrapper for library and system errors encountered by the library.

Constructor & Destructor Documentation

◆ Error()

ifm3d::Error::Error ( int  errnum,
const std::string &  msg = "" 

The ctor simply sets the error value and optional message into a local instance variables that may be retrieved with a call to code() and message().

Member Function Documentation

◆ code()

int ifm3d::Error::code ( ) const

Accessor to the underlying error code

◆ message()

const char* ifm3d::Error::message ( ) const

Accessor to the underlying error msg

◆ what()

virtual const char* ifm3d::Error::what ( ) const

Exception message

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