<commit_before>class FileNotFoundException(BaseException):
    pass

class MessageNotSent(BaseException):
    pass<commit_msg>Added some new exceptions Also added some moderately better handling of chained exceptions<commit_after>import traceback

class PsistatsException(BaseException):
    def __init__(self, message, cause=None):
        if (cause != None):
            message = message + ', caused by:' + "\n" + traceback.format_exc()

        super(PsistatsException, self).__init__(message)
        self.cause = cause

class QueueConfigException(PsistatsException):
    pass

class QueueConnectionException(PsistatsException):
    pass

class FileNotFoundException(PsistatsException):
    pass

class MessageNotSentException(PsistatsException):
    pass
{'fraction_non_alphanumeric': 0.07894736842105263, 'fraction_numerical': 0.0, 'mean_word_length': 4.765151515151516, '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': '7622437', 'n_tokens_mistral': 203, 'n_tokens_neox': 197, 'n_words': 50}