Nektar++
|
Public Member Functions | |
def | __init__ (self, context_obj, message, warn=False, level=None) |
def | show_xml_context_only (self) |
def | __str__ (self) |
def | ordinal (self, i) |
def | __unicode__ (self) |
Public Attributes | |
message | |
warn | |
level | |
show_xml_context | |
cname | |
ename | |
context | |
expr_index | |
math_index | |
reaction_spec | |
Private Member Functions | |
def | _generate_message (self, where) |
Private Attributes | |
_show_xml_context_only | |
Exception class for validation errors raised while checking mathematics.
def CellMLToNektar.pycml.MathsError.__init__ | ( | self, | |
context_obj, | |||
message, | |||
warn = False , |
|||
level = None |
|||
) |
Create a mathematics validation error. context_class should be the object that is reporting the error. message gives more details on what went wrong. If warn is set to true then produce a warning message, not an error. level gives the level of the message logged.
Reimplemented in CellMLToNektar.pycml.UnitsError.
Definition at line 3347 of file pycml.py.
def CellMLToNektar.pycml.MathsError.__str__ | ( | self | ) |
def CellMLToNektar.pycml.MathsError.__unicode__ | ( | self | ) |
Reimplemented in CellMLToNektar.pycml.UnitsError.
Definition at line 3425 of file pycml.py.
References CellMLToNektar.pycml.MathsError._generate_message().
|
private |
Definition at line 3407 of file pycml.py.
References CellMLToNektar.pycml.MathsError._show_xml_context_only, CellMLToNektar.pycml.MathsError.cname, CellMLToNektar.pycml.MathsError.context, CellMLToNektar.utilities.element_xpath(), CellMLToNektar.pycml.MathsError.expr_index, CellMLToNektar.pycml.MathsError.math_index, CellMLToNektar.pycml.MathsError.message, CellMLToNektar.pycml.MathsError.ordinal(), CellMLToNektar.pycml.MathsError.reaction_spec, CellMLToNektar.pycml.MathsError.show_xml_context, and CellMLToNektar.pycml.MathsError.warn.
Referenced by CellMLToNektar.pycml.MathsError.__unicode__(), and CellMLToNektar.pycml.UnitsError.__unicode__().
def CellMLToNektar.pycml.MathsError.ordinal | ( | self, | |
i | |||
) |
Definition at line 3398 of file pycml.py.
Referenced by CellMLToNektar.pycml.MathsError._generate_message().
def CellMLToNektar.pycml.MathsError.show_xml_context_only | ( | self | ) |
Only show the XML where the error occurred.
Definition at line 3389 of file pycml.py.
References CellMLToNektar.pycml.MathsError._show_xml_context_only, and CellMLToNektar.pycml.MathsError.show_xml_context.
Referenced by CellMLToNektar.processors.UnitsConverter.try_convert().
|
private |
Definition at line 3359 of file pycml.py.
Referenced by CellMLToNektar.pycml.MathsError._generate_message(), and CellMLToNektar.pycml.MathsError.show_xml_context_only().
CellMLToNektar.pycml.MathsError.cname |
Definition at line 3361 of file pycml.py.
Referenced by CellMLToNektar.pycml.MathsError._generate_message().
CellMLToNektar.pycml.MathsError.context |
Definition at line 3363 of file pycml.py.
Referenced by CellMLToNektar.pycml.MathsError._generate_message().
CellMLToNektar.pycml.MathsError.expr_index |
Definition at line 3367 of file pycml.py.
Referenced by CellMLToNektar.pycml.MathsError._generate_message().
CellMLToNektar.pycml.MathsError.math_index |
Definition at line 3367 of file pycml.py.
Referenced by CellMLToNektar.pycml.MathsError._generate_message().
CellMLToNektar.pycml.MathsError.message |
Definition at line 3355 of file pycml.py.
Referenced by CellMLToNektar.pycml.MathsError._generate_message().
CellMLToNektar.pycml.MathsError.reaction_spec |
Definition at line 3368 of file pycml.py.
Referenced by CellMLToNektar.pycml.MathsError._generate_message().
CellMLToNektar.pycml.MathsError.show_xml_context |
Definition at line 3358 of file pycml.py.
Referenced by CellMLToNektar.pycml.MathsError._generate_message(), and CellMLToNektar.pycml.MathsError.show_xml_context_only().
CellMLToNektar.pycml.MathsError.warn |
Definition at line 3356 of file pycml.py.
Referenced by CellMLToNektar.pycml.MathsError._generate_message().