bg nddlZddlmZGddeZGddeZGddeZdS) N)Pathc(eZdZdZdeffd ZxZS)FatalProspectorExceptionz Exception used to indicate an internal prospector problem. Problems in prospector itself should raise this to notify the user directly. Errors in dependent tools should be caught and the user notified elegantly. messagecXt|||_dSN)super__init__r)selfr __class__s f/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/prospector/exceptions.pyr z!FatalProspectorException.__init__s& !!! )__name__ __module__ __qualname____doc__strr __classcell__r s@r rrsNrrc$eZdZdeffd ZxZS)CouldNotHandleEncodingpathcVt||_dSr)r r r)r rr s r r zCouldNotHandleEncoding.__init__s$  rrrrrr rrs@r rrsDTrrc$eZdZdeffd ZxZS)PermissionMissingrcd}tj|rd|}nd|}dtjd|d|d}t |dS)NzShttps://prospector.landscape.io/en/master/profiles.html#ignoring-paths-and-patternsz directory z the file zThe current user z" does not have permission to open z. Either fix permissions or tell prospector to skip it by adding this path to `--ignore-paths` on the commandline or in `ignore-paths` in the prospector profile (see ))osrisdirgetloginr r )r rdocs_urlwhat error_msgr s r r zPermissionMissing.__init__sh 7==   &&&&DD%t%%D O  O O O ODL O O O  #####rrrs@r rrsD $T $ $ $ $ $ $ $ $ $ $rr)rpathlibr Exceptionrrrrr r(s y"Y $ $ $ $ $ $ $ $ $ $r