Throwing the wrong exception
See original GitHub issueThis line tries to throw the exception of fa
. But what if fb
was faulted and fa
was not?
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Wrong exception being thrown - java
1 Answer 1 ... The exception is thrown, but then you have a catch block that doesn't do anything and allows the execution...
Read more >How to Throw Exceptions in Java
Throwing an exception is as simple as using the "throw" statement. You then specify the Exception object you wish to throw. Every Exception...
Read more >Creating and Throwing Exceptions
Learn about creating and throwing exceptions. Exceptions are used to indicate that an error has occurred while running a program.
Read more >How to Throw Exceptions (The Java™ Tutorials > Essential ...
Most programs you write will throw and catch Exception s as opposed to Error s. The Java platform defines the many descendants of...
Read more >7 Common Mistakes You Should Avoid When Handling ...
Mistake 1: Specify a java. · Mistake 2: Catch unspecific exceptions · Mistake 3: Log and throw an Exception · Mistake 4: Use...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/louthy/language-ext/issues/339
Actually, most of this is dead code. I used to know this and was just recently reminded of how this works.
The documentation for
Task.WhenAll
saysFurthermore, when
await
ing a failedTask
, an exception is thrown. Therefore, most of the method is just dead code. It can be simplified to just