-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNereidesExceptions.py
executable file
·46 lines (36 loc) · 1.8 KB
/
NereidesExceptions.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
## @package NereidesExceptions
# Module for raising custom exceptions for using with Nereides
# Least Squares Spectral Element flow solver.
## Class for mesh generation erros, inherits from python Exception class
class MeshGenerationError:
## The constructor fpr the MeshGenerationError object
# \param[in] value The content that defines the kind of error, which will
# be given to the user.
# \param[out] self.parameter Where the value of the exception will be
# stored for the user to access it.
def __init__(self, value):
self.parameter = value
def __str__(self):
return repr(self.parameter)
## Class for Gauss-Quadrature generation errors, inherits from python Exception class
class GaussQuadratureError:
## The constructor fpr the GaussQuadError object
# \param[in] value The content that defines the kind of error, which will
# be given to the user.
# \param[out] self.parameter Where the value of the exception will be
# stored for the user to access it.
def __init__(self, value):
self.parameter = value
def __str__(self):
return repr(self.parameter)
## Class for GlobalNumbering generation errors, inherits from python Exception class
class GlobalNumberingError:
## The constructor fpr the GlobalNumberingError object
# \param[in] value The content that defines the kind of error, which will
# be given to the user.
# \param[out] self.parameter Where the value of the exception will be
# stored for the user to access it.
def __init__(self, value):
self.parameter = value
def __str__(self):
return repr(self.parameter)