Shared functions and methods

Custom Exceptions

Error

class nzpyida.exceptions.Error(message)[source]

This is the base class of all other exceptions thrown by ibmdbpy. It can be used to catch all exceptions with a single except statement.

Attributes:
args

Methods

add_note

Exception.add_note(note) -- add a note to the exception

with_traceback

Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.

IdaDataBaseError

class nzpyida.exceptions.IdaDataBaseError(message)[source]

This exception is raised when an error occurs while you manipulate the IdaDataBase interface.

Attributes:
args

Methods

add_note

Exception.add_note(note) -- add a note to the exception

with_traceback

Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.

IdaDataFrameError

class nzpyida.exceptions.IdaDataFrameError(message)[source]

This exception is raised when an error occurs while you manipulate the IdaDataFrame interface.

Attributes:
args

Methods

add_note

Exception.add_note(note) -- add a note to the exception

with_traceback

Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.

PrimaryKeyError

class nzpyida.exceptions.PrimaryKeyError(message)[source]

This exception is raised when an error occurs because of a missing or eroneous primary key column.

Attributes:
args

Methods

add_note

Exception.add_note(note) -- add a note to the exception

with_traceback

Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.

IdaKMeansError

class nzpyida.exceptions.IdaKMeansError(message)[source]

This exception is raised when an error related to the ibmdbpy KMeans clustering occurs.

Attributes:
args

Methods

add_note

Exception.add_note(note) -- add a note to the exception

with_traceback

Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.

IdaAssociationRulesError

class nzpyida.exceptions.IdaAssociationRulesError(message)[source]

This exception is raised when an error related to ibmdbpy Association Rules occurs.

Attributes:
args

Methods

add_note

Exception.add_note(note) -- add a note to the exception

with_traceback

Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.

IdaNaiveBayesError

class nzpyida.exceptions.IdaNaiveBayesError(message)[source]

This exception is raised when an error related to ibmdbpy Naive Bayes occurs.

Attributes:
args

Methods

add_note

Exception.add_note(note) -- add a note to the exception

with_traceback

Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.

User Interactions

Configuring the environment

nzpyida.utils.set_verbose(is_verbose)[source]

Set the environment variable “VERBOSE” to ‘TRUE’ or ‘FALSE’. If it is set to ‘TRUE’, all SQL request are printed in the console.

nzpyida.utils.set_autocommit(is_autocommit)[source]

Set the environment variable “AUTCOMMIT” to ‘TRUE’ or ‘FALSE’. If it is set to ‘TRUE’, all operations are committed automatically.