bagheera.parser.errors.ModuleDeclarationMissingException

exception bagheera.parser.errors.ModuleDeclarationMissingException(filename)[source]

Exception thrown when the module declaration is absent.

Initialize the Exception, with the filename so that the error message is more helpful.

Parameters

filename (str) – Name of the file that is missing a module declaration.

Returns

The exception explaining the error.

Return type

Exception