Package picalo :: Package base :: Module Error :: Class error
[show private | hide private]
[frames | no frames]

Class error


Method Summary
  __init__(self, exc, msg, previous)
An error type that signifies that an error occurred when calculating the value for some cell.
  __abs__(self, *args, **kargs)
  __add__(self, *args, **kargs)
  __and__(self, *args, **kargs)
  __cmp__(self, *args, **kargs)
  __complex__(self, *args, **kargs)
  __contains__(self, item)
  __delitem__(self, key)
  __div__(self, *args, **kargs)
  __divmod__(self, *args, **kargs)
  __eq__(self, other)
  __float__(self, *args, **kargs)
  __floordiv__(self, *args, **kargs)
  __ge__(self, other)
  __getitem__(self, key)
  __gt__(self, other)
  __hex__(self, *args, **kargs)
  __iadd__(self, *args, **kargs)
  __iand__(self, *args, **kargs)
  __idiv__(self, *args, **kargs)
  __ifloordiv__(self, *args, **kargs)
  __ilshift__(self, *args, **kargs)
  __imod__(self, *args, **kargs)
  __imul__(self, *args, **kargs)
  __int__(self, *args, **kargs)
  __invert__(self, *args, **kargs)
  __ior__(self, *args, **kargs)
  __ipow__(self, *args, **kargs)
  __irshift__(self, *args, **kargs)
  __isub__(self, *args, **kargs)
  __iter__(self, *args, **kargs)
  __itruediv__(self, *args, **kargs)
  __ixor__(self, *args, **kargs)
  __le__(self, other)
  __len__(self, *args, **kargs)
  __long__(self, *args, **kargs)
  __lshift__(self, *args, **kargs)
  __lt__(self, other)
  __mod__(self, *args, **kargs)
  __mul__(self, *args, **kargs)
  __ne__(self, other)
  __neg__(self, *args, **kargs)
  __nonzero__(self, *args, **kargs)
  __oct__(self, *args, **kargs)
  __or__(self, *args, **kargs)
  __pos__(self, *args, **kargs)
  __pow__(self, *args, **kargs)
  __radd__(self, *args, **kargs)
  __rand__(self, *args, **kargs)
  __rdiv__(self, *args, **kargs)
  __rdivmod__(self, *args, **kargs)
  __repr__(self)
  __rfloordiv__(self, *args, **kargs)
  __rlshift__(self, *args, **kargs)
  __rmod__(self, *args, **kargs)
  __rmul__(self, *args, **kargs)
  __ror__(self, *args, **kargs)
  __rpow__(self, *args, **kargs)
  __rrshift__(self, *args, **kargs)
  __rshift__(self, *args, **kargs)
  __rsub__(self, *args, **kargs)
  __rtruediv__(self, *args, **kargs)
  __rxor__(self, *args, **kargs)
  __setitem__(self, key, value)
  __str__(self)
  __sub__(self, *args, **kargs)
  __truediv__(self, *args, **kargs)
  __xor__(self, *args, **kargs)
Exception get_exception(self)
Returns the exception object associated with this error.
str get_message(self)
Returns the actual error message.
object get_previous(self)
Returns the previous value of the cell before the error was placed in the table.

Method Details

__init__(self, exc=None, msg=None, previous=None)
(Constructor)

An error type that signifies that an error occurred when calculating the value for some cell. Don't create this directly. Picalo creates them when errors are encountered during analyses so the analysis doesn't get stopped by small errors.

The error object is useful in that it encodes information about what went wrong. Although it only prints as <err> in table listings, it can be inspected as shown in the set_type method example.
Parameters:
exc - The exception object.
           (type=Exception)
msg - Allows you to provide a specific error message. Defaults to str(exception).
           (type=str)
previous - The previous value of the cell, so we don't lose it.
           (type=object)

get_exception(self)

Returns the exception object associated with this error. This might be None if no object was created.
Returns:
The exception object that caused this error.
           (type=Exception)

get_message(self)

Returns the actual error message. This allows the object to be interrogated for what really went wrong.
Returns:
The error message.
           (type=str)

get_previous(self)

Returns the previous value of the cell before the error was placed in the table. This might be none if the error didn't replace a cell value.
Returns:
The previous value of the cell where this error occurred.
           (type=object)

Generated by Epydoc 2.1 on Mon Aug 20 05:38:17 2007 http://epydoc.sf.net