Cadabra
Computer algebra system for field theory problems
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
ParseException(std::string)
Definition: Exceptions.cc:10
Exception thrown when something requires that an expression is a pure scalar (i.e.
Definition: Exceptions.hh:45
CadabraException(std::string)
Definition: Exceptions.cc:5
InterruptionException(std::string="")
Definition: Exceptions.cc:20
NotYetImplemented(std::string="")
Definition: Exceptions.cc:63
InternalError(std::string="")
Definition: Exceptions.cc:52
std::string py_what() const
Definition: Exceptions.cc:57
RuntimeException(std::string="")
Definition: Exceptions.cc:47
std::string py_what() const
Definition: Exceptions.cc:41
Definition: Exceptions.hh:28
ArgumentException(std::string="")
Definition: Exceptions.cc:25
Definition: Exceptions.hh:21
Definition: Exceptions.hh:7
NonScalarException(std::string="")
Definition: Exceptions.cc:36
std::string py_what() const
Definition: Exceptions.cc:30
std::string py_what() const
Definition: Exceptions.cc:68
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:75
Definition: Exceptions.hh:14
Exception thrown when there the Cadabra code detects an internal inconsistency; this should never hap...
Definition: Exceptions.hh:65
Exception thrown when an algorithm cannot complete, e.g.
Definition: Exceptions.hh:56
Exception thrown when arguments to an algorithm or property are not correct.
Definition: Exceptions.hh:35