o ä)X¾ ã@sŒdZdZGdd„deƒZGdd„deƒZGdd„deƒZGdd „d eƒZGd d „d eƒZGd d „d eƒZGdd„deƒZ Gdd„deƒZ dS)z' Exception Classes for the xdg package Fc@s eZdZdZdd„Zdd„ZdS)ÚErrorz'Base class for exceptions defined here.cCs||_t ||¡dS©N)ÚmsgÚ ExceptionÚ__init__)Úselfr©rú0/usr/lib/python3/dist-packages/xdg/Exceptions.pyr szError.__init__cCs|jSr)r)rrrrÚ__str__ sz Error.__str__N)Ú__name__Ú __module__Ú __qualname__Ú__doc__rr rrrrrs rc@óeZdZdZdd„ZdS)ÚValidationErrorzXRaised when a file fails to validate. The filename is the .file attribute. cCó$||_||_t |d||f¡dS)Nz!ValidationError in file '%s': %s ©rÚfilerr©rrrrrrrózValidationError.__init__N©r r r r rrrrrró rc@r)Ú ParsingErrorzWRaised when a file cannot be parsed. The filename is the .file attribute. cCr)NzParsingError in file '%s', %srrrrrrrzParsingError.__init__Nrrrrrrrrc@r)Ú NoKeyErrorzyRaised when trying to access a nonexistant key in an INI-style file. Attributes are .key, .group and .file. cCó,t |d|||f¡||_||_||_dS)Nz"No key '%s' in group %s of file %s©rrÚkeyÚgroupr©rrrrrrrr(ó zNoKeyError.__init__Nrrrrrr#rrc@r)ÚDuplicateKeyErrorzpRaised when the same key occurs twice in an INI-style file. Attributes are .key, .group and .file. cCr)Nz)Duplicate key '%s' in group %s of file %srrrrrr3rzDuplicateKeyError.__init__Nrrrrrr.rrc@r)Ú NoGroupErrorzuRaised when trying to access a nonexistant group in an INI-style file. Attributes are .group and .file. cCó$t |d||f¡||_||_dS)NzNo group: %s in file %s©rrrr©rrrrrrr>ó zNoGroupError.__init__Nrrrrrr 9rr c@r)ÚDuplicateGroupErrorzjRaised when the same key occurs twice in an INI-style file. Attributes are .group and .file. cCr!)NzDuplicate group: %s in file %sr"r#rrrrHr$zDuplicateGroupError.__init__Nrrrrrr%Crr%c@r)Ú NoThemeErrorzsRaised when trying to access a nonexistant icon theme. The name of the theme is the .theme attribute. cCst |d|¡||_dS)NzNo such icon-theme: %s)rrÚtheme)rr'rrrrRs zNoThemeError.__init__Nrrrrrr&Mrr&N) r Údebugrrrrrrr r%r&rrrrÚs