3

T'íc,
ã@sädZddlmZGdd„deƒZGdd„deƒZGdd„deƒZGd	d
„d
eƒZGdd„deƒZGd
d„deƒZ	Gdd„deƒZ
Gdd„deƒZGdd„deƒZGdd„deƒZ
Gdd„deƒZGdd„deƒZGdd„deƒZdS)z*Contains SphinxError and a few subclasses.é)ÚAnyc@seZdZdZdZdS)ÚSphinxErrora»Base class for Sphinx errors.

    This is the base class for "nice" exceptions.  When such an exception is
    raised, Sphinx will abort the build and present the exception category and
    message to the user.

    Extensions are encouraged to derive from this exception for their custom
    errors.

    Exceptions *not* derived from :exc:`SphinxError` are treated as unexpected
    and shown to the user with a part of the traceback (and the full traceback
    saved in a temporary file).

    .. attribute:: category

       Description of the exception "category", used in converting the
       exception to a string ("category: message").  Should be set accordingly
       in subclasses.
    zSphinx errorN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úcategory©r	r	ú//tmp/pip-build-gk9425m9/sphinx/sphinx/errors.pyrsrc@seZdZdZdZdS)Ú
SphinxWarningzWarning, treated as error.zWarning, treated as errorN)rrrrrr	r	r	r
rsrc@seZdZdZdZdS)ÚApplicationErrorz!Application initialization error.zApplication errorN)rrrrrr	r	r	r
r"srcs`eZdZdZd
eeeddœ‡fdd„
Zeedœdd„ƒZedœd	d
„Z	edœ‡fdd„Z
‡ZS)ÚExtensionErrorzExtension error.N)ÚmessageÚorig_excÚmodnameÚreturncs"tƒj|ƒ||_||_||_dS)N)ÚsuperÚ__init__rrr)Úselfrrr)Ú	__class__r	r
r*szExtensionError.__init__)rcCs|jrd|jSdSdS)NzExtension error (%s)zExtension error)r)rr	r	r
r0s
zExtensionError.categorycCs.|jrd|jj|j|jfSd|jj|jfS)Nz
%s(%r, %r)z%s(%r))rrrr)rr	r	r
Ú__repr__7szExtensionError.__repr__cs"tƒjƒ}|jrd||jfS|S)Nz%s (exception: %s))rÚ__str__r)rZ
parent_str)rr	r
r=s
zExtensionError.__str__)NN)rrrrÚstrÚ	ExceptionrÚpropertyrrrÚ
__classcell__r	r	)rr
r
'sr
c@seZdZdZdZdS)ÚBuildEnvironmentErrorzBuildEnvironment error.zBuildEnvironment errorN)rrrrrr	r	r	r
rDsrc@seZdZdZdZdS)ÚConfigErrorzConfiguration error.zConfiguration errorN)rrrrrr	r	r	r
rIsrc@seZdZdZdZdS)Ú
DocumentErrorzDocument error.zDocument errorN)rrrrrr	r	r	r
rNsrc@seZdZdZdZdS)Ú
ThemeErrorzTheme error.zTheme errorN)rrrrrr	r	r	r
rSsrc@seZdZdZdZdS)ÚVersionRequirementErrorz"Incompatible Sphinx version error.zSphinx version errorN)rrrrrr	r	r	r
r Xsr c@s4eZdZdZdZeeddœdd„Zedœdd	„ZdS)
ÚSphinxParallelErrorzSphinx parallel build error.zSphinx parallel build errorN)rÚ	tracebackrcCs||_||_dS)N)rr")rrr"r	r	r
rbszSphinxParallelError.__init__)rcCs|jS)N)r)rr	r	r
rfszSphinxParallelError.__str__)	rrrrrrrrrr	r	r	r
r!]sr!c@seZdZdZedœdd„ZdS)ÚPycodeErrorz)Pycode Python source code analyser error.)rcCs.|jd}t|jƒdkr*|d|jd7}|S)Nréz (exception was: %r))ÚargsÚlen)rÚresr	r	r
rms
zPycodeError.__str__N)rrrrrrr	r	r	r
r#jsr#c@seZdZdZdS)ÚNoUriziRaised by builder.get_relative_uri() or from missing-reference handlers
    if there is no URI available.N)rrrrr	r	r	r
r(tsr(c@seZdZdZdS)ÚFiletypeNotFoundErrorz@Raised by get_filetype() if a filename matches no source suffix.N)rrrrr	r	r	r
r)zsr)N)rÚtypingrrrrrr
rrrrr r!r#r(r)r	r	r	r
Ú<module>s