Luiza  v03-01
LuizaExceptions.h
1 // -*- mode: c++; mode: auto-fill; mode: flyspell-prog; -*-
2 
3 #ifndef LuizaExceptions_h
4 #define LuizaExceptions_h 1
5 
6 #include "Processor.h"
7 #include "Exceptions.h"
8 
9 // define some exceptions for Luiza
10 
11 namespace luiza{
12 
14 
15  class ParseException : public Exception{
16 
17  protected:
18  ParseException() { /*no_op*/ ; }
19  public:
20  virtual ~ParseException() throw() { /*no_op*/; }
21 
22  ParseException( std::string text ){
23  message = "luiza::ParseException: " + text ;
24  }
25  };
26 
27 
29 
34  class SkipEventException : public Exception{
35 
36  protected:
37  SkipEventException() { /*no_op*/ ; }
38 
39  public:
40  SkipEventException(const Processor* proc){
41  message = proc->name() ;
42  }
43  virtual ~SkipEventException() throw() { /*no_op*/; }
44 
45  };
46 
48 
55 
56  protected:
57  StopProcessingException() { /*no_op*/ ; }
58 
59  public:
61  message = proc->name() ;
62  }
63  virtual ~StopProcessingException() throw() { /*no_op*/; }
64 
65  };
66 
67 
69 
77 
78  protected:
79  AbortProcessingException() { /*no_op*/ ; }
80 
81  public:
83  message = proc->name() ;
84  }
85  virtual ~AbortProcessingException() throw() { /*no_op*/; }
86 
87  };
88 
89 
90 
91 } // end namespace
92 
93 #endif
94 
95 
96 
virtual const std::string & name() const
Return name of this processor.
Definition: Processor.h:132
SkipEventException used to skip the current event in Processor::processData.
Definition: LuizaExceptions.h:34
StopProcessingException used to stop proccessing of data.
Definition: LuizaExceptions.h:54
AbortProcessingException used to abort proccessing of data.
Definition: LuizaExceptions.h:76
Base class for Luiza processors.
Definition: Processor.h:55
ParseException used for parse errors, e.g. when reading the steering file.
Definition: LuizaExceptions.h:15
Namespace for Luiza framework.
Definition: CCCollection.h:6
Define Exceptions class, useful for control of data processing.
Definition: Exceptions.h:17