10 #define ThePEG_Throw_H
13 #include "ThePEG/Config/ThePEG.h"
14 #include "ThePEG/Utilities/Exception.h"
15 #include "ThePEG/Repository/CurrentGenerator.h"
16 #include "ThePEG/Repository/Repository.h"
43 template <
typename Ex>
This is the main namespace within which all identifiers in ThePEG are declared.
Helper function to make it easier to throw exceptions.
void logWarning(const Exception &)
Log a given exception.
static ostream & clog()
Get the standard log stream.
~Throw()
The destructor will throw the exception if it has not been handled.
Ex ex
The ExceptionObject to be thrown.
Not severe (but the user should be informed).
bool handled
If true, the exception has been handled and should not be thrown in the destructor.
Severity
The levels of severity.
static EventGenerator & current()
Return a reference to the currently chosen EventGenerator object.
Possibly severe, (the user should be warned).
static bool isVoid()
Returns true if there is no currently chosen EventGenerator object.
Throw & operator<<(const T &t)
Add information to the current Exception object.
Throw()
Standard constructor creating an internal Exception object.
void operator<<(Exception::Severity sev)
Specify the Exception::Severity of the exception.