Go to the documentation of this file.
32 #ifndef STRING_INCLUDED
33 #define STRING_INCLUDED
38 #include "CLHEP/RefCount/ZMhandleTo.h"
41 #ifndef ZMEXSEVERITY_H
62 class ZMexHandlerBehavior {
67 const std::string aname =
"ZMexHandlerBehavior"
68 ) : name_( aname ) { }
76 virtual std::string
name()
const {
return name_; }
84 const std::string name_;
96 class ZMexHandler :
public ZMhandleTo< ZMexHandlerBehavior > {
113 return rep_->takeCareOf(
x);
132 class ZMexThrowAlways :
public ZMexHandlerBehavior {
177 class ZMexIgnoreNextN :
public ZMexHandlerBehavior {
209 #define ZMEXHANDLER_ICC
210 #include "CLHEP/Exceptions/ZMexHandler.icc"
211 #undef ZMEXHANDLER_ICC
214 #endif // ZMEXHANDLER_H
virtual ZMexHandleViaParent * clone() const
virtual ZMexAction takeCareOf(const ZMexception &x)
ZMexHandlerBehavior(const std::string aname="ZMexHandlerBehavior")
virtual ZMexThrowErrors * clone() const
virtual ZMexAction takeCareOf(const ZMexception &x)
int setLogLimit(ZMexSeverity s, int limit)
The given behavior will apply to any exceptions ZMthrow n after the handler has been established Available handlers Here is a list of the five standard handlers that are defined via the Exceptions package Each is accompanied by a brief description of its after become the object of a C throw but will have no further affect on subsequent control flow ZMexThrowErrors() the ZMthrow 'n exception instance will
ZMexAction standardHandling(const ZMexception &x, bool willThrow)
The given behavior will apply to any exceptions ZMthrow n after the handler has been established Available handlers Here is a list of the five standard handlers that are defined via the Exceptions package Each is accompanied by a brief description of its after become the object of a C throw ZMexIgnoreAlways() the ZMthrow 'n exception instance will be handled
ZMexHandlerBehavior * rep_
virtual ZMexAction takeCareOf(const ZMexception &x)
virtual ~ZMexHandlerBehavior()
virtual ZMexAction takeCareOf(const ZMexception &x)
ZMexHandler(const ZMexHandlerBehavior &behaviorWanted)
int ZMexSeverityLimit[ZMexSEVERITYenumLAST]
virtual ZMexAction takeCareOf(const ZMexception &x)
virtual ZMexThrowAlways * clone() const
Methods applicble to containers of as in std::list< LorentzVector > s
virtual ZMexAction takeCareOf(const ZMexception &)
virtual ZMexHandlerBehavior * clone() const
and for determining whether the exception instance can safely be ignored by the user code The Exceptions package includes a number of pre defined implementing several commonly wanted behaviors Each exception class is associated with a handler to be applied to all ZMthrow n instances of that class By default this handler implements the behavior known as ZMexHandleViaParent()
any side effects of that construction would occur twice The semantics of throw x
virtual std::string name() const
virtual ZMexIgnoreAlways * clone() const
virtual ZMexAction takeCareOf(const ZMexception &x)
virtual ZMexIgnoreNextN * clone() const