Skip to content

MINOR: change exception.getMessage to toString#4790

Merged
guozhangwang merged 1 commit into
apache:trunkfrom
guozhangwang:KMinor-getMessage-toString
Mar 28, 2018
Merged

MINOR: change exception.getMessage to toString#4790
guozhangwang merged 1 commit into
apache:trunkfrom
guozhangwang:KMinor-getMessage-toString

Conversation

@guozhangwang

Copy link
Copy Markdown
Contributor

In many places of Streams we use exception.getMessage(), but for some exceptions the message is null, making it harder to trouble shoot. Propose to change them to toString() to maintain the exception name at least; in some places we choose to even print out the stack trace.

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@guozhangwang guozhangwang requested a review from mjsax March 28, 2018 19:09
@guozhangwang

Copy link
Copy Markdown
Contributor Author

@bbejeck @vvcephei

@bbejeck bbejeck left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @guozhangwang LGTM

@mjsax mjsax left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@guozhangwang guozhangwang merged commit 28f1fc2 into apache:trunk Mar 28, 2018
@guozhangwang guozhangwang deleted the KMinor-getMessage-toString branch April 24, 2020 23:55
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.

3 participants