class documentation

class ParsingError(Exception):

View In Hierarchy

Exception class for parsing errors

Method __init__ Initializes the ParsingError class with the filename and a line and column number based on the current position in the file (if available) :param message: The message to display :type message: str :param line: The line number of the error :type line: int :param column: The column number of the error :type column: int :param file: The name of the file :type file: str :return: None...
Method __str__ Returns a string representation of the ParsingError :return: The string representation of the ParsingError
Instance Variable column Undocumented
Instance Variable file Undocumented
Instance Variable line Undocumented
Instance Variable message Undocumented
def __init__(self, message=None, line=None, column=None, file=None):

Initializes the ParsingError class with the filename and a line and column number based on the current position in the file (if available) :param message: The message to display :type message: str :param line: The line number of the error :type line: int :param column: The column number of the error :type column: int :param file: The name of the file :type file: str :return: None

def __str__(self):

Returns a string representation of the ParsingError :return: The string representation of the ParsingError

column =

Undocumented

file =

Undocumented

line =

Undocumented

message =

Undocumented