I need to throw exception from Grails service. But :
The exception has to be "checked" so that Hibernate would not rollback upon throwing that exception. But looks like the base exception class in Grails ( "GrailsException" ) is unchecked (extented from RuntimeException). Is there any checked exception exists in Grails that I can extend for my purpose? If not how can I create a checked exception class in Grails?
I am not very clear about when an exception can be called "checked" or "unchecked"? May be, more specifically, my question is what is a checked exception and what are the characteristics of it?
I can provide code example if more clarification on my question is required. I tried:
class MyException extends GrailsException {
}
and it's rolling back the transaction on this exception
Thanks in advance