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 7533449
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:43:44+00:00 2026-05-30T05:43:44+00:00

Is it possible to create my own unchecked exception in Java? Basically, I’d like

  • 0

Is it possible to create my own unchecked exception in Java?

Basically, I’d like to

  • Have my own exception class, MyUncheckedException
  • That does not make me update all methods that call the method that throws this exception with a flood of own throws
  • 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-05-30T05:43:46+00:00Added an answer on May 30, 2026 at 5:43 am

    Yes. Extend MyUncheckedException from RuntimeException. However, below is the guideline from documentation

    Generally speaking, do not throw a RuntimeException or create a
    subclass of RuntimeException simply because you don’t want to be
    bothered with specifying the exceptions your methods can throw.

    Here’s the bottom line guideline: If a client can reasonably be
    expected to recover from an exception, make it a checked exception. If
    a client cannot do anything to recover from the exception, make it an
    unchecked exception.

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

Sidebar

Related Questions

Is it possible to create a trigger that will not be in a transaction?
Does anyone know if it's possible to create my own wildcard certificate under Ubuntu?
Can anyone explain why it's not possible to create your own view controller hierarchies
Is it possible to create own own project structure ( Archetype) i also like
Possible Duplicate: Problem to achieve curved animation Can I create my own Animation class
I'm wondering if it's possible to create my own services that I can use
I am trying to create my own HTML element that looks like this: The
Possible Duplicate: How to create my own JavaScript Random Number generator that I can
In Wordpress it's possible to create own WP Querys for the loop. An example
Is it possible to create your own widgets in XAML?

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.