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

  • Home
  • SEARCH
  • 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 4615474
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T01:50:42+00:00 2026-05-22T01:50:42+00:00

when in eclipse i use a method which throws an exception, it usually complains

  • 0

when in eclipse i use a method which throws an exception, it usually complains if it is not surrounded by a try/catch or if the exception is not thrown again. But for some exceptions (e.g. Integer.parseInt(string)) eclipse won’t complain.

How do i set eclipse to complain for all not handled exceptions??

Thanks!

  • 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-22T01:50:43+00:00Added an answer on May 22, 2026 at 1:50 am

    The simple answer is that you can’t.

    The longer answer is:

    • Checked versus unchecked exceptions is a fundamental part of the Java language.

    • It is not the role of the Eclipse compiler to give compilation errors or warnings for valid and perfectly acceptable Java.

    • You wouldn’t want it to either, considering that the majority of statements could (in theory) throw or propagate exceptions such as NullPointerException, ArrayIndexOutOfBoundsException, OutOfMemoryError, and so on.

    Yes, there are one or two “mistakes” … such as NumberFormatException being an unchecked exception … but a better way to deal with that would be (for example) to run PMD with some custom rules to pick up exceptions that “ought to be” treated as checked.

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

Sidebar

Related Questions

For example, I use a method Measure.doubleValue(Unit<?> unit) which returns the double value of
I use Eclipse 3.3 in my daily work, and have also used Eclipse 3.2
I use eclipse for quite a lot of work, including: multiple utility projects that
I use Eclipse, Maven, and Java in my development. I use Maven to download
I use Eclipse with external projects - i.e. projects created from existing source. Poking
I use Eclipse (3.4) and my class compiles without warning or errors. My project
I don't use Eclipse as an IDE, and have no interest in doing so.
I've trying to use Eclipse JDT AST parsing classes. After including the initial JAR,
Instead of hardcoding the default @author template I would like Eclipse to use user's
I'm just getting into the practice of version control (I'd like to use Eclipse

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.