Nektar++
|
Public Member Functions | |
def | __init__ (self, context_obj, message, warn=False, level=None) |
def | __unicode__ (self) |
Public Member Functions inherited from CellMLToNektar.pycml.MathsError | |
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) |
Additional Inherited Members | |
Public Attributes inherited from CellMLToNektar.pycml.MathsError | |
message | |
warn | |
level | |
show_xml_context | |
cname | |
ename | |
context | |
expr_index | |
math_index | |
reaction_spec | |
Exception class for validation errors raised during units checking of mathematics.
def CellMLToNektar.pycml.UnitsError.__init__ | ( | self, | |
context_obj, | |||
message, | |||
warn = False , |
|||
level = None |
|||
) |
Create a units 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 from CellMLToNektar.pycml.MathsError.
Definition at line 3434 of file pycml.py.
def CellMLToNektar.pycml.UnitsError.__unicode__ | ( | self | ) |
Reimplemented from CellMLToNektar.pycml.MathsError.
Definition at line 3445 of file pycml.py.
References CellMLToNektar.pycml.MathsError._generate_message().