Skip to content

Implemented custom exceptions#317

Merged
FxJYg merged 2 commits intomainfrom
felix/implement-custom-exceptions
Feb 24, 2025
Merged

Implemented custom exceptions#317
FxJYg merged 2 commits intomainfrom
felix/implement-custom-exceptions

Conversation

@FxJYg
Copy link
Contributor

@FxJYg FxJYg commented Feb 22, 2025

Purpose

Implemented a custom list of exceptions to catch our own exceptions and handle them appropriately in specific manners depending on the type. Task: https://www.notion.so/uworbital/Create-custom-exceptions-1918a26d7677803dab4ce576a11a5ebb?pvs=4

New Changes

Created a custom list of exceptions that all inherit from a BaseOrbitalException class

Testing

N/A

Outstanding Changes

N/A

@github-actions
Copy link

Pull reviewers stats

Stats of the last 120 days for UWOrbital:

User Total reviews Time to review Total comments
kepler452b123 22 2d 6h 44m 97
Yarik-Popov 20 1d 15h 11m 231
Navtajh04 3 2d 19h 35m 32
dgobalak 2 5d 13h 35m 11

⚡️ Pull request stats

Copy link
Contributor

@Yarik-Popov Yarik-Popov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good. Just one thing to add. For all the classes that inherit from BaseOrbitalException, add to their doc string the info about the message attribute. Same as you did in the BaseOrbitalException. Once that is done, lgtm

Copy link
Contributor

@Yarik-Popov Yarik-Popov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

@FxJYg FxJYg merged commit 30ae0d6 into main Feb 24, 2025
48 checks passed
@FxJYg FxJYg deleted the felix/implement-custom-exceptions branch February 24, 2025 02:20
@Yarik-Popov Yarik-Popov added this to the 25W milestone Mar 9, 2025
@Yarik-Popov Yarik-Popov added the project: backend Backend tasks label Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

project: backend Backend tasks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants