<commit_before>Migrating to PRAW 7.X
=====================

Exception Handling
------------------

.. _exception_handling:

Class :class:`.APIException` has also been renamed to :class:`.RedditAPIException`.
Importing :class:`.APIException` will still work, but is deprecated, but will be removed
in PRAW 8.0.

PRAW 7 introduced a fundamental change in how exceptions are recieved from Reddit's API.
Reddit can return multiple exceptions for one API action, and as such, the exception
:class:`.RedditAPIException` serves as a container for each of the true exception
objects. These objects are instances of :class:`.RedditErrorItem`, and they contain the<commit_msg>docs: fix simple typo, recieved -> received<commit_after>Migrating to PRAW 7.X
=====================

Exception Handling
------------------

.. _exception_handling:

Class :class:`.APIException` has also been renamed to :class:`.RedditAPIException`.
Importing :class:`.APIException` will still work, but is deprecated, but will be removed
in PRAW 8.0.

PRAW 7 introduced a fundamental change in how exceptions are received from Reddit's API.
Reddit can return multiple exceptions for one API action, and as such, the exception
:class:`.RedditAPIException` serves as a container for each of the true exception
objects. These objects are instances of :class:`.RedditErrorItem`, and they contain the
{'fraction_non_alphanumeric': 0.12334801762114538, 'fraction_numerical': 0.005873715124816446, 'mean_word_length': 4.632231404958677, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '7133914', 'n_tokens_mistral': 366, 'n_tokens_neox': 345, 'n_words': 164}