Cadabra
Computer algebra system for field theory problems
Exceptions.hh
Go to the documentation of this file.
1 
2 #pragma once
3 
4 #include <stdexcept>
5 #include <string>
6 
7 class CadabraException : public std::logic_error {
8  public:
9  CadabraException(std::string);
10  };
11 
12 // Exception thrown when an inconsist expression or argument is encountered.
13 
15  public:
16  ConsistencyException(std::string);
17  };
18 
19 // Exception thrown when the parser cannot parse an input expression.
20 
22  public:
23  ParseException(std::string);
24  };
25 
26 // Exception thrown when an algorithm determines that it was interrupted.
27 
29  public:
30  InterruptionException(std::string="");
31  };
32 
34 
36  public:
37  ArgumentException(std::string="");
38 
39  std::string py_what() const;
40  };
41 
44 
46  public:
47  NonScalarException(std::string="");
48 
49  std::string py_what() const;
50  };
51 
55 
57  public:
58  RuntimeException(std::string="");
59  };
60 
61 
64 
66  public:
67  InternalError(std::string="");
68 
69  std::string py_what() const;
70  };
71 
74 
76  public:
77  NotYetImplemented(std::string="");
78 
79  std::string py_what() const;
80  };
81 
Exception thrown when arguments to an algorithm or property are not correct.
Definition: Exceptions.hh:35
ArgumentException(std::string="")
Definition: Exceptions.cc:25
std::string py_what() const
Definition: Exceptions.cc:30
Definition: Exceptions.hh:7
CadabraException(std::string)
Definition: Exceptions.cc:5
Definition: Exceptions.hh:14
ConsistencyException(std::string)
Definition: Exceptions.cc:15
Exception thrown when there the Cadabra code detects an internal inconsistency; this should never hap...
Definition: Exceptions.hh:65
std::string py_what() const
Definition: Exceptions.cc:57
InternalError(std::string="")
Definition: Exceptions.cc:52
Definition: Exceptions.hh:28
InterruptionException(std::string="")
Definition: Exceptions.cc:20
Exception thrown when something requires that an expression is a pure scalar (i.e.
Definition: Exceptions.hh:45
std::string py_what() const
Definition: Exceptions.cc:41
NonScalarException(std::string="")
Definition: Exceptions.cc:36
Exception thrown when there the Cadabra code detects an internal inconsistency; this should never hap...
Definition: Exceptions.hh:75
std::string py_what() const
Definition: Exceptions.cc:68
NotYetImplemented(std::string="")
Definition: Exceptions.cc:63
Definition: Exceptions.hh:21
ParseException(std::string)
Definition: Exceptions.cc:10
Exception thrown when an algorithm cannot complete, e.g.
Definition: Exceptions.hh:56
RuntimeException(std::string="")
Definition: Exceptions.cc:47