NSCL DDAS  1.0
Support for XIA DDAS at the NSCL
 All Classes Namespaces Files Functions Variables Macros Pages
Exceptions.h
1 // Exceptions.h
2 //
3 // Author : Jeromy Tompkins
4 // Date : 8/14/2013
5 
6 #ifndef EXCEPTIONS_H
7 #define EXCEPTIONS_H
8 
9 #include <string>
10 #include <TObject.h>
11 
12 namespace TrAnal
13 {
14 
15 // class ProcessorException
16 // {
17 // public:
18 // ProcessorException() throw() {}
19 //
20 // ProcessorException(const ProcessorException& exc) throw() {}
21 //
22 // virtual ~ProcessorException() throw() {}
23 //
24 // virtual const char* what() throw() { return "Processor exception"; }
25 //
26 // ClassDef(ProcessorException,0);
27 // };
28 
29 
30  class AlgorithmOutOfBoundsException// : public ProcessorException
31  {
32  private:
33  std::string fMessage;
34 
35  public:
36  AlgorithmOutOfBoundsException(const unsigned int algopoint, const unsigned int valid_low, const unsigned int valid_high) throw();
37 
39 
40  AlgorithmOutOfBoundsException& operator=(const AlgorithmOutOfBoundsException& exc) throw();
41 
43 
44  const char* what() const throw();
45 
49  };
50 
51  class InvalidResultException // : public ProcessorException
52  {
53  private:
54  std::string fMessage;
55 
56  public:
57  InvalidResultException(const std::string& message) throw();
58 
60 
61  InvalidResultException& operator=(const InvalidResultException& exc) throw();
62 
63  ~InvalidResultException() throw();
64 
65  const char* what() const throw();
66 
68  ClassDef(InvalidResultException,0);
70 
71  };
72 
73 } // end namespace
74 
75 #endif
76 
Definition: Exceptions.h:30
Definition: AlgoIterator.hpp:12
Definition: Exceptions.h:51