Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8644277
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:15:15+00:00 2026-06-12T12:15:15+00:00

I need to throw exception from Grails service. But : The exception has to

  • 0

I need to throw exception from Grails service. But :

  1. 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?

  2. 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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T12:15:16+00:00Added an answer on June 12, 2026 at 12:15 pm

    There’s no requirement that you subclass any Grails exception – extend java.lang.Exception or any other checked exception as your base class.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I need to throw an exception from within my application which of the
I have a .NET web-service client that has been autogenerated from a wsdl-file using
Code: catch (IOException e) { LOGGER.error(IOException exception happened); //now need throw again the same
I need my methods to throw custom exceptions but it keeps giving me this
I need to translate an exception emanating from a Task<T> in the same manner
concurrent colleagues. I need to be able to trap an exception that might be
I have some C code that compiles to a DLL. From C#, I need
I need to throw 404 error in module. Or may be there are any
I need to know either my PHP script could delete some data from data
I need to create a valid xml from a given array(); My Method looks

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.