hpp-util
4.9.0
Debugging tools for the HPP project.
|
Macros | |
#define | HPP_THROW(TYPE, MSG) throw ::hpp::ExceptionFactory<TYPE>() << MSG << ::hpp::ThrowException() |
Throw an exception of type using MSG as a string stream. More... | |
#define | HPP_THROW_WITH_LINEINFO(TYPE, MSG) HPP_THROW(TYPE,MSG << " at " << __FILE__ << ":" << __LINE__) |
Throw an exception of type using MSG as a string stream. More... | |
It eases throwing exceptions built from string stream. You can use equivalently
or
or
#define HPP_THROW | ( | TYPE, | |
MSG | |||
) | throw ::hpp::ExceptionFactory<TYPE>() << MSG << ::hpp::ThrowException() |
Throw an exception of type using MSG as a string stream.
#define HPP_THROW_WITH_LINEINFO | ( | TYPE, | |
MSG | |||
) | HPP_THROW(TYPE,MSG << " at " << __FILE__ << ":" << __LINE__) |
Throw an exception of type using MSG as a string stream.