26#ifndef LIBFSW_EXCEPTION_H
27# define LIBFSW_EXCEPTION_H
29# include "../c/error.h"
62 const char *
what() const noexcept override;
79 explicit operator
int() const noexcept;
Base exception of the libfswatch library.
Definition: libfswatch_exception.hpp:42
virtual int error_code() const noexcept
Gets the error code.
Definition: libfswatch_exception.cpp:35
const char * what() const noexcept override
Gets the error message.
Definition: libfswatch_exception.cpp:30
libfsw_exception(std::string cause, int code=FSW_ERR_UNKNOWN_ERROR)
Constructs an exception with the specified cause and error code.
#define FSW_ERR_UNKNOWN_ERROR
Definition: error.h:37
Main namespace of libfswatch.
Definition: event.cpp:24