Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
TheSmoun1517y@danglingPtr yeah maybe. Usually you could use this for logging or for rollbacks in the EntityManager
-
xewl41717yI've seen this, and in most cases it was a placeholder for a to-do: throw another exception from the current namespace (and perhaps log this one)
This try-catch is redundant, though. -
py2js33777yI use try catch and then throw just to cleanup for the exception, log every important thing then throw
Related Rants
Just found this piece of code from one of my coworkers:
restMethod() {
try {
// some complicated logic
} catch (WebApplicationException e) {
throw e;
}
}
Why?!
And btw: Hi fellow devRant ppl! 👋
rant
rest api
jpa
java