19#ifndef LIBSEMIGROUPS_EXCEPTION_HPP_
20#define LIBSEMIGROUPS_EXCEPTION_HPP_
26#include "detail/fmt.hpp"
27#include "detail/formatters.hpp"
95#define LIBSEMIGROUPS_EXCEPTION(...) \
97 throw LibsemigroupsException( \
98 __FILE__, __LINE__, __func__, fmt::format(__VA_ARGS__)); \
Namespace for everything in the libsemigroups library.
Definition action.hpp:44
LibsemigroupsException(std::string const &fname, int linenum, std::string const &funcname, std::string const &msg)
Create an exception.
LibsemigroupsException(LibsemigroupsException const &)=default
Default copy constructor.
LibsemigroupsException(LibsemigroupsException &&)=default
Default move constructor.
LibsemigroupsException & operator=(LibsemigroupsException const &)=default
Default copy assignment operator.
LibsemigroupsException & operator=(LibsemigroupsException &&)=default
Default move assignment operator.