py4cytoscape.exceptions.CyError
-
exception
CyError
(message_text, caller=None)[source] Create an error describing a Cytoscape or py4cytoscape fault.
- Parameters
message_text (str) – text describing error condition
caller (str) – name of function in which error is to be reported
- Returns
contains the text message and error location
- Return type
- Raises
none –
Examples
>>> CyError('Invalid column name') 'In commands_get(): Invalid column name' >>> CyError('slot must be an integer between 1 and 9', caller=sys._getframe(1).f_code.co_name) 'In get_network_suid(): slot must be an integer between 1 and 9'