phaser-server  0.0.2
except.h
Go to the documentation of this file.
1 #ifndef EXCEPT_H
2 #define EXCEPT_H
8 #include <stdexcept>
9 
14 class JobRequestWarning : public std::logic_error
15 { public:
16  JobRequestWarning(void) :
17  logic_error("Request inconsistent with current phasing job state") {}
18 };
19 \
20 
23 class Bypassed : public cpplib::Exception
24 { public:
26  Bypassed(const std::string &cavity) :
27  Exception("Can't measure bypassed cavity", cavity) {}
28 };
29 
30 
33 class NoBem : public cpplib::Exception
34 { public:
36  NoBem(void) : Exception("BEM heartbeat problem") {}
37 };
38 
39 
42 class RegionInvalid : public cpplib::Exception
43 { public:
45  RegionInvalid(const std::string &region) :
46  Exception("Region energy unavailable", region) {}
47 };
48 
49 
52 class Abort
53 {
54 };
55 
56 
59 class Interrupt
60 {
61 };
62 
63 #endif
Abort the server.
Definition: except.h:53
Bypassed cavity can't be measured.
Definition: except.h:24
Bypassed(const std::string &cavity)
Construct an instance.
Definition: except.h:26
Interrupt current phasing measurement.
Definition: except.h:60
phasing job request warning.
Definition: except.h:15
The BEM heartbeat is not updating.
Definition: except.h:34
NoBem(void)
Construct an instance.
Definition: except.h:36
Energy measurement region is not valid.
Definition: except.h:43
RegionInvalid(const std::string &region)
Construct an instance.
Definition: except.h:45