Exception and Error Callbacks

Exception

exception monotable.table.MonoTableCellError(row, column, format_spec='', trace_text=None)

Raised when format_func fails. Identifies the offending cell.

row

Cell grid row index of value causing format_func exception.

Type:int
column

Cell grid column index of value causing format_func exception.

Type:int
format_spec

Format_spec passed to format_func when exception occurred.

Type:str
trace_text

Exception trace information for root cause of the exception.

Type:str
name

Name of the exception shown in the string representation.

Type:str

Format Function Error Callbacks

Format function error callbacks take an instance of monotable.table.MonoTableCellError.

These are used to override the class variable format_exc_callback in a subclass or on an instance.

monotable.plugin.raise_it(cell_error_exception: monotable.cellerror.MonoTableCellError) → None

Format function error callback. Exception is raised.

monotable.plugin.print_it(cell_error_exception: monotable.cellerror.MonoTableCellError) → str

Format function error callback. Prints exception. Returns ‘???’.

monotable.plugin.ignore_it(_: monotable.cellerror.MonoTableCellError) → str

Format function error callback. No action taken. Returns ‘???’.