File: //usr/lib/python3/dist-packages/sphinx/__pycache__/errors.cpython-310.pyc
o
�$�a � @ s� d Z ddlmZ G dd� de�ZG dd� de�ZG dd� de�ZG d d
� d
e�ZG dd� de�ZG d
d� de�Z G dd� de�Z
G dd� de�ZG dd� de�ZG dd� de�Z
G dd� de�ZG dd� de�ZG dd� de�ZdS )a
sphinx.errors
~~~~~~~~~~~~~
Contains SphinxError and a few subclasses (in an extra module to avoid
circular import problems).
:copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
� )�Anyc @ � e Zd ZdZdZdS )�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.
zSphinx errorN��__name__�
__module__�__qualname__�__doc__�category� r r �//usr/lib/python3/dist-packages/sphinx/errors.pyr s r c @ r )�
SphinxWarningzWarning, treated as error.zWarning, treated as errorNr r r r r r
&