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 {
147 class ZMexThrowErrors :
public ZMexHandlerBehavior {
162 class ZMexIgnoreAlways :
public ZMexHandlerBehavior {
177 class ZMexIgnoreNextN :
public ZMexHandlerBehavior {
198 class ZMexHandleViaParent :
public ZMexHandlerBehavior {
209 #define ZMEXHANDLER_ICC
210 #include "CLHEP/Exceptions/ZMexHandler.icc"
211 #undef ZMEXHANDLER_ICC
214 #endif // ZMEXHANDLER_H
virtual ZMexIgnoreAlways * clone() const
ZMexHandlerBehavior(const std::string aname="ZMexHandlerBehavior")
virtual ZMexAction takeCareOf(const ZMexception &x)
virtual ~ZMexHandlerBehavior()
virtual ZMexThrowErrors * clone() const
virtual ZMexIgnoreNextN * clone() const
int ZMexSeverityLimit[ZMexSEVERITYenumLAST]
virtual ZMexHandlerBehavior * clone() const
virtual ZMexAction takeCareOf(const ZMexception &x)
virtual ZMexHandleViaParent * clone() const
ZMexHandler(const ZMexHandlerBehavior &behaviorWanted)
virtual ZMexAction takeCareOf(const ZMexception &)
virtual ZMexAction takeCareOf(const ZMexception &x)
virtual ZMexAction takeCareOf(const ZMexception &x)
int setLogLimit(ZMexSeverity s, int limit)
ZMexAction standardHandling(const ZMexception &x, bool willThrow)
virtual ZMexThrowAlways * clone() const
virtual std::string name() const
virtual ZMexAction takeCareOf(const ZMexception &x)
ZMexHandlerBehavior * rep_
virtual ZMexAction takeCareOf(const ZMexception &x)