Catch The Uncaught (Exception) #java #shorts

preview_player
Показать описание


#airhacks
Рекомендации по теме
Комментарии
Автор

I already planed a question for the next Airhacks, just need to post it: how can you catch an exception thrown for example in Quarkus Hibernate with Panache, say you have a unique constraint key violation for example, as it just breaks process with a ugly exception

DanielWamara
Автор

Nice!
What happens after the exception is caught? Thread stops I assume?

MrIStillDontCare
Автор

Instead would it be better to write an own exception that's specific to one's use case?

cihan