Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | List of all members
CellMLToNektar.pycml.UnitsError Class Reference
Inheritance diagram for CellMLToNektar.pycml.UnitsError:
Inheritance graph
[legend]
Collaboration diagram for CellMLToNektar.pycml.UnitsError:
Collaboration graph
[legend]

Public Member Functions

def __init__
 
def __unicode__
 
- Public Member Functions inherited from CellMLToNektar.pycml.MathsError
def __init__
 
def show_xml_context_only
 
def __str__
 
def ordinal
 
def __unicode__
 

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
 

Detailed Description

Exception class for validation errors raised during units checking
of mathematics.

Definition at line 3429 of file pycml.py.

Constructor & Destructor Documentation

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.

Definition at line 3434 of file pycml.py.

3435  def __init__(self, context_obj, message, warn=False, level=None):
3436  """Create a units validation error.
3437 
3438  context_class should be the object that is reporting the error.
3439  message gives more details on what went wrong.
3440  If warn is set to true then produce a warning message, not an error.
3441  level gives the level of the message logged.
3442  """
3443  MathsError.__init__(self, context_obj, message, warn=warn, level=level)
3444  return

Member Function Documentation

def CellMLToNektar.pycml.UnitsError.__unicode__ (   self)

Definition at line 3445 of file pycml.py.

References CellMLToNektar.pycml.MathsError._generate_message().

3446  def __unicode__(self):
3447  return self._generate_message('checking units')
3448