Skip to content
This repository was archived by the owner on Nov 1, 2022. It is now read-only.

Conversation

@rocketsroger
Copy link
Contributor


Pull Request checklist

  • Quality: This PR builds and passes detekt/ktlint checks (A pre-push hook is recommended)
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Changelog: This PR includes a changelog entry or does not need one
  • Accessibility: The code in this PR follows accessibility best practices or does not include any user facing features

After merge

  • Milestone: Make sure issues closed by this pull request are added to the milestone of the version currently in development.
  • Breaking Changes: If this is a breaking change, please push a draft PR on Reference Browser to address the breaking issues.

@rocketsroger rocketsroger added the 🕵️‍♀️ needs review PRs that need to be reviewed label May 11, 2020
@rocketsroger rocketsroger requested a review from pocmo May 11, 2020 20:55
@codecov
Copy link

codecov bot commented May 11, 2020

Codecov Report

Merging #6946 into master will decrease coverage by 0.13%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #6946      +/-   ##
============================================
- Coverage     77.22%   77.09%   -0.14%     
- Complexity     4607     4870     +263     
============================================
  Files           628      652      +24     
  Lines         22807    23994    +1187     
  Branches       3312     3513     +201     
============================================
+ Hits          17613    18497     +884     
- Misses         3837     4038     +201     
- Partials       1357     1459     +102     
Impacted Files Coverage Δ Complexity Δ
...java/mozilla/components/lib/crash/CrashReporter.kt 85.71% <100.00%> (+1.00%) 32.00 <3.00> (+2.00)
...eature/prompts/dialog/MultiButtonDialogFragment.kt 84.00% <0.00%> (ø) 15.00% <0.00%> (?%)
...eature/prompts/dialog/ColorPickerDialogFragment.kt 85.00% <0.00%> (ø) 15.00% <0.00%> (?%)
...mozilla/components/feature/prompts/ext/EditText.kt 100.00% <0.00%> (ø) 0.00% <0.00%> (?%)
...components/feature/prompts/dialog/ChoiceAdapter.kt 89.65% <0.00%> (ø) 30.00% <0.00%> (?%)
...ponents/feature/prompts/dialog/AutofillEditText.kt 28.57% <0.00%> (ø) 0.00% <0.00%> (?%)
...ure/prompts/dialog/AuthenticationDialogFragment.kt 91.22% <0.00%> (ø) 17.00% <0.00%> (?%)
...feature/prompts/dialog/TextPromptDialogFragment.kt 90.90% <0.00%> (ø) 14.00% <0.00%> (?%)
...nts/feature/prompts/dialog/PromptAbuserDetector.kt 77.77% <0.00%> (ø) 11.00% <0.00%> (?%)
...mozilla/components/feature/prompts/ext/Calendar.kt 56.25% <0.00%> (ø) 0.00% <0.00%> (?%)
... and 15 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cb6e7a4...d0646a6. Read the comment docs.

*/
var reportThrowable = throwable
if (throwable.stackTrace.isEmpty()) {
reportThrowable = InvalidParameterException()
Copy link
Contributor

Choose a reason for hiding this comment

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

  • If this is for debugging purposes: Maybe create a custom exception for this case?
  • Let's also add the original throwable as cause of the new exception, so that we get the original one too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I'll update. Thanks,

@rocketsroger rocketsroger force-pushed the AC_6903 branch 2 times, most recently from a8b8fe6 to efab3b1 Compare May 12, 2020 15:29
@rocketsroger rocketsroger requested a review from pocmo May 12, 2020 15:32
@rocketsroger rocketsroger reopened this May 12, 2020
@rocketsroger rocketsroger reopened this May 12, 2020
@rocketsroger rocketsroger changed the title Close #6903: Caught exception with no stack trace will be reported as InvalidParameterException Close #6903: Caught exception with no stack trace will be reported as UnexpectedlyMissingStacktrace May 12, 2020
…be reported as UnexpectedlyMissingStacktrace
Copy link
Contributor

@pocmo pocmo left a comment

Choose a reason for hiding this comment

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

bors r+

@bors
Copy link

bors bot commented May 13, 2020

Build succeeded:

@bors bors bot merged commit c29ab1d into mozilla-mobile:master May 13, 2020
@rocketsroger rocketsroger deleted the AC_6903 branch May 13, 2020 17:07
@rocketsroger rocketsroger removed the 🕵️‍♀️ needs review PRs that need to be reviewed label May 13, 2020
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