Cadabra
Computer algebra system for field theory problems
Toggle main menu visibility
Loading...
Searching...
No Matches
core
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
14
class
ConsistencyException
:
public
CadabraException
{
15
public
:
16
ConsistencyException
(std::string);
17
};
18
19
// Exception thrown when the parser cannot parse an input expression.
20
21
class
ParseException
:
public
CadabraException
{
22
public
:
23
ParseException
(std::string);
24
};
25
26
// Exception thrown when an algorithm determines that it was interrupted.
27
28
class
InterruptionException
:
public
CadabraException
{
29
public
:
30
InterruptionException
(std::string=
""
);
31
};
32
34
35
class
ArgumentException
:
public
CadabraException
{
36
public
:
37
ArgumentException
(std::string=
""
);
38
39
std::string
py_what
()
const
;
40
};
41
44
45
class
NonScalarException
:
public
CadabraException
{
46
public
:
47
NonScalarException
(std::string=
""
);
48
49
std::string
py_what
()
const
;
50
};
51
55
56
class
RuntimeException
:
public
CadabraException
{
57
public
:
58
RuntimeException
(std::string=
""
);
59
};
60
61
64
65
class
InternalError
:
public
CadabraException
{
66
public
:
67
InternalError
(std::string=
""
);
68
69
std::string
py_what
()
const
;
70
};
71
74
75
class
NotYetImplemented
:
public
CadabraException
{
76
public
:
77
NotYetImplemented
(std::string=
""
);
78
79
std::string
py_what
()
const
;
80
};
81
ArgumentException::ArgumentException
ArgumentException(std::string="")
Definition
Exceptions.cc:25
ArgumentException::py_what
std::string py_what() const
Definition
Exceptions.cc:30
CadabraException::CadabraException
CadabraException(std::string)
Definition
Exceptions.cc:5
ConsistencyException::ConsistencyException
ConsistencyException(std::string)
Definition
Exceptions.cc:15
InternalError::py_what
std::string py_what() const
Definition
Exceptions.cc:57
InternalError::InternalError
InternalError(std::string="")
Definition
Exceptions.cc:52
InterruptionException::InterruptionException
InterruptionException(std::string="")
Definition
Exceptions.cc:20
NonScalarException::py_what
std::string py_what() const
Definition
Exceptions.cc:41
NonScalarException::NonScalarException
NonScalarException(std::string="")
Definition
Exceptions.cc:36
NotYetImplemented::py_what
std::string py_what() const
Definition
Exceptions.cc:68
NotYetImplemented::NotYetImplemented
NotYetImplemented(std::string="")
Definition
Exceptions.cc:63
ParseException::ParseException
ParseException(std::string)
Definition
Exceptions.cc:10
RuntimeException::RuntimeException
RuntimeException(std::string="")
Definition
Exceptions.cc:47
Generated by
1.17.0