Skip to content

Homework 102502041#33

Open
YenchungChen wants to merge 4 commits intoMAP-NCU2015:homeworkfrom
YenchungChen:homework
Open

Homework 102502041#33
YenchungChen wants to merge 4 commits intoMAP-NCU2015:homeworkfrom
YenchungChen:homework

Conversation

@YenchungChen
Copy link

No description provided.

Copy link
Contributor

Choose a reason for hiding this comment

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

Serious issue: if you catch it without logging AND re-throwing it, the following chains (if any) will not get interrupted and in the console there will be nothing about the error. It could be a disaster in real programs. So please correct it.

Copy link
Contributor

Choose a reason for hiding this comment

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

And the reason we need both logging and re-throwing is because you can prevent the error is covered in the following chains by logging it, while to re-throw it is to make sure the following chain will get interrupted, or some undefined behaviors may cause troubles.

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.

2 participants