Breaking change in 1.1.15. AuthenticationException is now a checked exception, it was un-checked previously
See original GitHub issueHi,
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.
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:
- Created 7 years ago
- Comments:5 (1 by maintainers)
Top 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 >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
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.
@Ricalo Yup, it’s our bad to not update the version correctly for causing the confusion. Also thank you @imakhalova for the explanation.