Skip to content

Latest commit

 

History

History

only-unchecked-exceptions

Your objective here is to actually implemente the doThrow method and be able to throw a SQLException.

If you learned the documentation you've heard of checked exceptions, but what if I told you there's only unchecked exceptions in the JVM and that you can bypass the "unreported exception message"?

PS: Lombok has sneakyThrows to accomplish just that, so that would be another option to accomplish the same, however, since it has been disabled in codewars you won't pass kata by using it though

PSPS: don't waste your time using throws in the method signature