Skip to content

Commit

Permalink
feat(ReturnException): add exception to handle return statements
Browse files Browse the repository at this point in the history
  • Loading branch information
aadhithya committed May 16, 2022
1 parent 8e90d1e commit cc99f7c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rajinipp/execptions.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
class BreakException(Exception):
pass


class ReturnException(Exception):
def __init__(self, message, return_value) -> None:
super().__init__(message)
self.return_value = return_value

0 comments on commit cc99f7c

Please sign in to comment.