Class GPUdbException

class gpudb.GPUdbException(value, had_connection_failure=False)[source]
get_formatted_traceback()[source]

If this exception is created from another exception, then returns a string containing the original traceback. Otherwise, returns an empty string.

is_connection_failure()[source]

Returns: True if the error is related to a connection failure; False otherwise.

static stringify_exception(ex)[source]

Given any exception, return a stringified representation. If an error message is available, return that. If no error message, then return the exceptions representation using repr() method.

Note that this method should probably only be used for Python exceptions that are not derived from GPUdbException (or itself). All GPUdbException objects (and its children) ought to have a proper error message; so this extra check should not be needed.

Parameters

ex (Exception) –

Python exception object.

Returns

A string representing the exception.