<commit_before>"""
:mod:`disco.error` -- Errors with special meaning in Disco
==========================================================


"""
import sys

class DiscoError(Exception):
    """The base class for all Disco errors"""
    pass

class JobError(DiscoError):
    """
    An error that occurs when a client submits or interacts with a Disco job.

    .. attribute:: msg

        Error message.

   .. attribute:: name

        Name of the failed job.

   .. attribute:: master
<commit_msg>docs: fix spacing of JobError docstring<commit_after>"""
:mod:`disco.error` -- Errors with special meaning in Disco
==========================================================


"""
import sys

class DiscoError(Exception):
    """The base class for all Disco errors"""
    pass

class JobError(DiscoError):
    """An error that occurs when a client submits or interacts with a Disco job.

    .. attribute:: error

        Error message.

    .. attribute:: name

        Name of the failed job.

    .. attribute:: master

{'fraction_non_alphanumeric': 0.20510304219823355, 'fraction_numerical': 0.0, 'mean_word_length': 3.232365145228216, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5787438', 'n_tokens_mistral': 276, 'n_tokens_neox': 254, 'n_words': 103}