Skip to content
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

Add MidnightSunException, PolarNightException #33

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rfjakob
Copy link

@rfjakob rfjakob commented Jul 11, 2024

Instead of just raising SunTimeException, report
whether we have midnight sun or polar night.

Implemented in a backwards-compatible way by
subclassing SunTimeException.

That catching SunTimeException still works as before
is verified by extending the tests.

Fixes #32

This is enough for an expection that just contains
a message ( https://stackoverflow.com/a/1319675 ).

To verify that it works as expected, the TestNoSun tests
are expanded to check the exception message.
Instead of just raising SunTimeException, report
whether we have midnight sun or polar night.

Implemented in a backwards-compatible way by
subclassing SunTimeException.

That catching SunTimeException still works as before
is verified by extending the tests.

Fixes SatAgro#32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature request: report whether we have midnight sun or polar night
1 participant