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.

Breaking change in 1.1.15. AuthenticationException is now a checked exception, it was un-checked previously

See original GitHub issue

Hi,

You introduced a breaking change in v1.1.15.

By making AuthenticationException inherit from Exception you are effectively requiring the developers to check for this Exception. If they didn’t, then their code breaks when they try to update to v1.1.15

Look at AuthenticationException class in this compare view.

Or just this image highlighting the change. 2016-04-08_10-32-22

This should not be a revision number update. Since this breaks existing code, this should be added to your next major update.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
imakhalovacommented, Apr 15, 2016

Hello, Thank you so much for your feedback. Sorry, that we didn’t set version to 1.2.0 as we probably should have to. You’re right, this is build break change, but if your app wasn’t catching this exceptions before this change, it could easily get runtime exception and your app will crash. So we see a big benefit of notifying user that method can throw an exception. We hope that you’ll find this change useful.

0reactions
weijjiacommented, Apr 20, 2016

@Ricalo Yup, it’s our bad to not update the version correctly for causing the confusion. Also thank you @imakhalova for the explanation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Checked and Unchecked Exceptions in Java - Baeldung
Java exceptions fall into two main categories: checked exceptions and unchecked exceptions. In this tutorial, we'll provide some code ...
Read more >
java - When to choose checked and unchecked exceptions
You can call it a checked or unchecked exception; however, both types of exception can be caught by the programmer, so the best...
Read more >
How to Handle Checked & Unchecked Exceptions in Java
Try Catch. You simply wrap the Java code which throws the checked exception within a try catch block. This now allows you to...
Read more >
Checked vs Unchecked Exceptions in Java - GeeksforGeeks
A partially checked exception is a checked exception where some of its child classes are unchecked, like Exception.
Read more >
What are checked vs. unchecked exceptions in Java?
When an exception must be handled with try-and-catch semantics, it is known as a checked exceptions. If try-and-catch semantics are not required ...
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