Skip to content
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.

Update messages in the exceptions #237

Merged
merged 1 commit into from
Jan 11, 2018
Merged

Update messages in the exceptions #237

merged 1 commit into from
Jan 11, 2018

Conversation

silverdaz
Copy link
Contributor

For exception e,
str(e) is an informal (epurated) description,
repr(e) is a technical description

For exception e,
str(e) is an informal (epurated) description,
repr(e) is a technical description
@silverdaz silverdaz requested a review from juhtornr January 11, 2018 11:22
@silverdaz silverdaz self-assigned this Jan 11, 2018
@silverdaz silverdaz added this to the Sprint 21 milestone Jan 11, 2018
Copy link
Collaborator

@juhtornr juhtornr left a comment

Choose a reason for hiding this comment

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

The change is good. However I'm wondering should we rename exceptions to *Error(s)?

See e.g. https://stackoverflow.com/a/2906861

@juhtornr
Copy link
Collaborator

juhtornr commented Jan 11, 2018

We discussed with @silverdaz and these exceptions actually are not "Errors" which would require code to die. These exceptions are used for control flow and falls into the category mentioned in that Stackoverflow link:

"Not all Exceptions are Errors. SystemExit, KeyboardInterrupt, StopIteration, GeneratorExit are all exceptions and not errors. The word 'Error' in actual errors shows the difference."

@juhtornr juhtornr merged commit 1733508 into dev Jan 11, 2018
@silverdaz silverdaz deleted the feature/exceptions branch January 11, 2018 11:52
juhtornr added a commit that referenced this pull request May 30, 2018
Update messages in the exceptions
viklund pushed a commit that referenced this pull request Nov 22, 2018
Update messages in the exceptions
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants