question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unreachable code path: ApiDispatcher call to ExceptionAdapter

See original GitHub issue

The following code paths inside of ExceptionAdapter#baseExceptionFromException() do not appear reachable, based on this logic inside of ApiDispatcher.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
shoatmancommented, Feb 12, 2019

Let’s move this to the AD Accounts repo or common. Thanks for the explanation Brian. Yes the blocked tag drew my attention.

0reactions
iambmeltcommented, Feb 12, 2019

This code is used by the addAccount API in BrokerClientApplication which is used by Company Portal and Authenticator (via AccountChooserActivity). 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found