Skip to content

Tag: exception

Exceptions or null in java

I have the next doubt. According to good practices of java, how to manage the cases in which the object can not be found and we want to know why. For example, if someone has problems logging in our system and we want to inform them exactly what is the problem, we cannot return null because we lose the reason

Is it possible to resume Java execution after exception?

I have a ParentClass in a JAR, but not source code. I am implementing a SubClass, but i need to handle some corner cases. Is there a way to run the //lots of code 2 part after handling the exception in the overriding method? I don’t want to duplicate code, and cannot modify the ParentClass. P.S: The Nul…