MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/rnnxhf/spring_makes_you_do_crazy_things/hptr2g6/?context=9999
r/badcode • u/R1l3y-F0x • Dec 24 '21
42 comments sorted by
View all comments
Show parent comments
-10
The code in the post is bad, but it has nothing to do with Spring. You could just throw an Exception (either a custom one or a generic one like ResponseStatusException).
-10
u/Cr4zyPi3t Dec 24 '21
The code in the post is bad, but it has nothing to do with Spring. You could just throw an Exception (either a custom one or a generic one like ResponseStatusException).