Unreachable code path: ApiDispatcher call to ExceptionAdapter
See original GitHub issueThe following code paths inside of ExceptionAdapter#baseExceptionFromException()
do not appear reachable, based on this logic inside of ApiDispatcher
.
- Check for
instanceof ClientException
(a subclass ofBaseException
) - Check for
instanceof UiException
(a subclass ofBaseException
)
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Why i get error "unreachable code" when i try to put an if in my ...
It is code that appears after a return statement. When running the function, the JS engine will always return from the function before...
Read more >Is throwing new RuntimeExceptions in unreachable code a ...
They are required, because there is no dynamic dispatch based on argument type. The argument type must be known at compile time to...
Read more >Unreachable Code Error in Java - GeeksforGeeks
The Unreachable statements refers to statements that won't get executed during the execution of the program are called Unreachable ...
Read more >How to Fix Unreachable Statement Errors in Java - Rollbar
If it finds a statement for which there is no such path, the compiler raises the unreachable statement error [3].
Read more >Detecting Unreachable Code and Dead Code - Learning Ada
The "Unused code" section of MISRA C contains seven rules that deal with detecting both unreachable code and dead code. The two most...
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
Let’s move this to the AD Accounts repo or common. Thanks for the explanation Brian. Yes the blocked tag drew my attention.
This code is used by the
addAccount
API inBrokerClientApplication
which is used by Company Portal and Authenticator (viaAccountChooserActivity
). This issue here was to mean ‘investigate before shipping to make sure this works as intended’, which seemed reasonable given the dead-code. ad-accounts would be a fine place to track too.Just realized I’d clicked ‘blocked’ and not ‘bug’ on this issue (both tags red) – blocked would very much be the wrong tag for this 😅
*Edit - If you’d prefer to not see this tracked here, let’s determine what the right place is.