verticapy.errors.VersionError#
- exception verticapy.errors.VersionError#
An exception raised when an error occurs due to incompatible or unexpected software version dependencies.
This error indicates that the current version of a component or module is not compatible with the required or expected version, leading to operational issues.
Examples#
The following function checks if the version is greater than or equal to 9; if not, it raises an error.
from verticapy.errors import VersionError def version_ge_9(version: tuple): if version[0] < 9: raise VersionError( "The feature requires a version greater than or equal to 9." )
Note
Errors can be employed when implementing new functions to provide clear explanations for why a particular option or feature is not functioning as intended. It is essential to review all available errors to choose the most appropriate one.