Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions python/docs/source/development/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,9 @@ To throw a standardized user-facing error or exception, developers should specif
Usage
~~~~~

1. Check if an appropriate error class already exists in `error_classes.py`.
1. Check if an appropriate error class already exists in `Error classes in PySpark <errors.rst#error-classes-in-pyspark>`_.
If true, use the error class and skip to step 3.
2. Add a new class to `error_classes.py`; keep in mind the invariants below.
2. Add a new class to `error_classes.py <https://github.com/apache/spark/blob/master/python/pyspark/errors/error_classes.py>`_; keep in mind the invariants below.
3. Check if the exception type already extends `PySparkException`.
If true, skip to step 5.
4. Mix `PySparkException` into the exception.
Expand Down