Exception.hh
Go to the documentation of this file.
1 #pragma once
2 
3 #include <stdexcept>
4 #include <string>
5 
6 namespace boca
7 {
8 
19 class Problematic : public std::runtime_error
20 {
21 public:
22  Problematic(std::string const &argument = __FILE__) : std::runtime_error(argument)
23  {
24  arg_ = argument;
25  };
26  char const *what() const throw ();
28 };
29 
33 class Overlap : public std::exception
34 {
35 
36 public:
37 
38  char const *what() const throw ();
39 
40 };
41 
45 class Empty : public std::exception
46 {
47 public:
48  char const *what() const throw ();
49 };
50 
54 class Isolated : public std::exception
55 {
56 public:
57  char const *what() const throw ();
58 };
59 
60 }
61 
62 /*
63  * @}
64  */
Generic problematic cases.
Definition: Exception.hh:19
Empty multiplets
Definition: Exception.hh:45
Overlap between structures
Definition: Exception.hh:33
STL namespace.
Boosted Collider Analysis.
Definition: Analysis.hh:15
std::string arg_
Definition: Exception.hh:27
char const * what() const
Definition: Exception.cpp:6
Isolated objects
Definition: Exception.hh:54
Problematic(std::string const &argument=__FILE__)
Definition: Exception.hh:22