Jpp 20.0.0-27-g39925593c-D
the software that should make you happy
Loading...
Searching...
No Matches
Classes | Macros
Exception.hh File Reference
#include <exception>
#include <string>
#include <ostream>
#include <sstream>

Go to the source code of this file.

Classes

class  Exception
 General exception. More...
 

Macros

#define THROW(Exception_t, A)   do { throw Exception_t(static_cast<std::ostringstream&>(Exception::getOstream() << __FILE__ << ':' << __LINE__ << std::endl << A).str()); } while(0)
 Marco for throwing exception with std::ostream compatible message.
 

Macro Definition Documentation

◆ THROW

#define THROW ( Exception_t,
A )   do { throw Exception_t(static_cast<std::ostringstream&>(Exception::getOstream() << __FILE__ << ':' << __LINE__ << std::endl << A).str()); } while(0)

Marco for throwing exception with std::ostream compatible message.

Parameters
Exception_texception
Amessage

Definition at line 84 of file Exception.hh.