#include <hpp/util/config.hh>
#include <iosfwd>
#include <stdexcept>
#include <string>
Go to the source code of this file.
|
| HPP_UTIL_DLLAPI std::ostream & | hpp::operator<< (std::ostream &o, const Exception &exception) |
| | Override operator<< to handle exception display.
|
◆ HPP_MAKE_EXCEPTION
| #define HPP_MAKE_EXCEPTION | ( | | EXTRA_QUALIFIER, |
| | | TYPE ) |
Value:public: \
TYPE(const std::string& message, const std::string& file, unsigned line) \
}
Main exception class for HPP.
Definition exception.hh:47
Exception(const std::string &message, const std::string &file, unsigned line)
Definition exception.cc:43
Definition assertion.hh:45
Define a custom exception.
◆ HPP_MAKE_EXCEPTION_NO_QUALIFIER
| #define HPP_MAKE_EXCEPTION_NO_QUALIFIER | ( | | TYPE | ) | |
Value:public: \
TYPE(const std::string& message, const std::string& file, unsigned line) \
}
Define a custom exception without extra qualifier.
◆ HPP_THROW_EXCEPTION
| #define HPP_THROW_EXCEPTION | ( | | TYPE, |
| | | MSG ) |
Value:throw TYPE(MSG, __FILE__, __LINE__)
Launch a HPP exception (generic macro).
◆ HPP_THROW_EXCEPTION_
| #define HPP_THROW_EXCEPTION_ | ( | | MSG | ) | |
Value:throw ::hpp::Exception(MSG, __FILE__, __LINE__)
Launch a HPP exception.