-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add custom OutOfBoundsError
and replace existing ValueErrors
#303
Conversation
co-authored-by: daniaHu <[email protected]>
🦙 MegaLinter status: ✅ SUCCESS
See detailed report in MegaLinter reports |
Codecov Report
@@ Coverage Diff @@
## main #303 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 43 43
Lines 1761 1794 +33
=========================================
+ Hits 1761 1794 +33
|
"""Exception raised when a value is not in the range [lower, upper].""" | ||
|
||
def __init__(self, value: float, lower: float, upper: float) -> None: | ||
super().__init__(f"Value {value} is not in the range [{lower}, {upper}].") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adjust the message for the boundaries of _table line 978-981.
Closes #262.
Summary of Changes
Add custom
OutOfBoundsError
and replace existingValueErrors
that need to be more specific.