Skip to content

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

rfjakob added 2 commits July 11, 2024 11:45
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