Loading...

verticapy.errors.ParsingError#

exception verticapy.errors.ParsingError#

An exception raised when an error occurs during the parsing of data or code. This error indicates challenges such as syntax errors, incorrect formatting, or issues with interpreting the structure of the input, hindering the successful parsing process.

Examples#

The following function checks if the input string does not start with flower brackets.

from verticapy.errors import ParsingError

def does_not_start_fb(x: str):

    if x.startswith(('{', '}')):

        raise ParsingError(
            "The file can not starts with flower brackets."
        )

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.